public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix type of check_valid_shift_count parameter
@ 2023-03-01 21:00 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-03-01 21:00 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9d834fcaa141705738d3322a753358f845dd8bbc
commit 9d834fcaa141705738d3322a753358f845dd8bbc
Author: Tom Tromey <tromey@adacore.com>
Date: Wed Mar 1 13:58:50 2023 -0700
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.
Diff:
---
gdb/valarith.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-01 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 21:00 [binutils-gdb] Fix type of check_valid_shift_count parameter Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).