Lint fixes from Paul Eggert (eggert@twinsun.com):
authorJohn Gilmore <gnu@cygnus>
Fri, 5 Mar 1993 01:44:38 +0000 (01:44 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 5 Mar 1993 01:44:38 +0000 (01:44 +0000)
* command.c (do_setshow_command):  var_uintegers are unsigned.
* sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
unsigned, since they use hex values with the high bit set.

gdb/ChangeLog
gdb/command.c

index 525ee6614ac496258b4a8bbde7890b74b7f7b2e8..8430d28a69129c7c9447991f9a45f7ea3d8147cc 100644 (file)
@@ -1,3 +1,11 @@
+Thu Mar  4 17:42:03 1993  John Gilmore  (gnu@cygnus.com)
+
+       Lint fixes from Paul Eggert (eggert@twinsun.com):
+
+       * command.c (do_setshow_command):  var_uintegers are unsigned.
+       * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes): 
+       unsigned, since they use hex values with the high bit set.
+
 Thu Mar  4 08:22:55 1993  Fred Fish  (fnf@cygnus.com)
 
        Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
index 122c8cad607cda91b85b6e48a5e0458dba260280..1fce334b4f51edc6d49b5b0a6d0e685350b4f6d1 100644 (file)
@@ -1054,9 +1054,9 @@ do_setshow_command (arg, from_tty, c)
        case var_uinteger:
          if (arg == NULL)
            error_no_arg ("integer to set it to.");
-         *(int *) c->var = parse_and_eval_address (arg);
-         if (*(int *) c->var == 0)
-           *(int *) c->var = UINT_MAX;
+         *(unsigned int *) c->var = parse_and_eval_address (arg);
+         if (*(unsigned int *) c->var == 0)
+           *(unsigned int *) c->var = UINT_MAX;
          break;
        case var_zinteger:
          if (arg == NULL)