From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [pushed] Fix type of check_valid_shift_count parameter
Date: Wed, 1 Mar 2023 13:59:34 -0700 [thread overview]
Message-ID: <20230301205934.3295865-1-tromey@adacore.com> (raw)
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(-)
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)
--
2.39.1
reply other threads:[~2023-03-01 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230301205934.3295865-1-tromey@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).