]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix type of check_valid_shift_count parameter
authorTom Tromey <tromey@adacore.com>
Wed, 1 Mar 2023 20:58:50 +0000 (13:58 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 1 Mar 2023 20:58:50 +0000 (13:58 -0700)
check_valid_shift_count has an 'int' parameter that really should be
an enum exp_opcode.  This patch makes the change.  Tested by
rebuilding.

gdb/valarith.c

index 070ee63808e57356be23ba67e2f5a50472210c9a..6ea0cd9e8d14acf3ca7c3131b007dcd0714288c4 100644 (file)
@@ -1102,7 +1102,7 @@ type_length_bits (type *type)
    false, or errors out.  Returns true if valid.  */
 
 static bool
-check_valid_shift_count (int op, type *result_type,
+check_valid_shift_count (enum exp_opcode op, type *result_type,
                         type *shift_count_type, ULONGEST shift_count)
 {
   if (!shift_count_type->is_unsigned () && (LONGEST) shift_count < 0)