[pushed] Fix type of check_valid_shift_count parameter

Message ID 20230301205934.3295865-1-tromey@adacore.com
State Committed
Commit 9d834fcaa141705738d3322a753358f845dd8bbc
Headers
Series [pushed] Fix type of check_valid_shift_count parameter |

Commit Message

Tom Tromey March 1, 2023, 8:59 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/valarith.c b/gdb/valarith.c
index 070ee63808e..6ea0cd9e8d1 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)