diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 379c8d22ec7..191ef31463e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-19 Pedro Alves + + * record.c (validate_history_size): Make parameter 'setting' + unsigned. + 2013-04-19 Pedro Alves * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts diff --git a/gdb/record.c b/gdb/record.c index 0a7f0a1aa50..76d9fd2d7a9 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -643,7 +643,7 @@ cmd_record_call_history (char *arg, int from_tty) is the real setting the command allows changing. */ static void -validate_history_size (unsigned int *command_var, int *setting) +validate_history_size (unsigned int *command_var, unsigned int *setting) { if (*command_var != UINT_MAX && *command_var > INT_MAX) {