diff options
author | Tom Tromey <tromey@adacore.com> | 2023-03-01 13:58:50 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-03-01 13:58:50 -0700 |
commit | 9d834fcaa141705738d3322a753358f845dd8bbc (patch) | |
tree | 30103cceb44184c2f54289403d1661d9c84ac401 /gdb | |
parent | 09e5f69526eaa2916cc2b30de78d0558b9b0f832 (diff) | |
download | gdb-9d834fcaa141705738d3322a753358f845dd8bbc.zip gdb-9d834fcaa141705738d3322a753358f845dd8bbc.tar.gz gdb-9d834fcaa141705738d3322a753358f845dd8bbc.tar.bz2 |
Fix type of check_valid_shift_count parameter
check_valid_shift_count has an 'int' parameter that really should be
an enum exp_opcode. This patch makes the change. Tested by
rebuilding.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/valarith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 070ee63..6ea0cd9 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -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) |