aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
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)