mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user