aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-03-05 01:44:38 +0000
committerJohn Gilmore <gnu@cygnus>1993-03-05 01:44:38 +0000
commit4966c17c42738b367edb99d49a4653cf5d35b301 (patch)
tree12cddf99cdc90378537406d9f62ed9719ac81f7b /gdb/command.c
parent2456bacba8b4982ed36d6dca368dfcc43fa4edde (diff)
downloadfsf-binutils-gdb-4966c17c42738b367edb99d49a4653cf5d35b301.zip
fsf-binutils-gdb-4966c17c42738b367edb99d49a4653cf5d35b301.tar.gz
fsf-binutils-gdb-4966c17c42738b367edb99d49a4653cf5d35b301.tar.bz2
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.
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/command.c b/gdb/command.c
index 122c8ca..1fce334 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -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)