public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: ubsan: csky-dis.c:1038 left shift cannot be represented
Date: Wed,  2 Sep 2020 18:13:00 +0930	[thread overview]
Message-ID: <20200902084302.26786-17-amodra@gmail.com> (raw)

	* csky-dis.c (print_insn_csky): Use unsigned type for "given".

diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c
index 09eed4b825..f815679e37 100644
--- a/opcodes/csky-dis.c
+++ b/opcodes/csky-dis.c
@@ -944,7 +944,7 @@ print_insn_csky (bfd_vma memaddr, struct disassemble_info *info)
   CSKY_INST_TYPE inst = 0;
   int status;
   char str[256];
-  long given;
+  unsigned long given;
   int is_data = FALSE;
   void (*printer) (bfd_vma, struct disassemble_info *, long);
   unsigned int  size = 4;
-- 
Alan Modra
Australia Development Lab, IBM


                 reply	other threads:[~2020-09-02  8:44 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=20200902084302.26786-17-amodra@gmail.com \
    --to=amodra@gmail.com \
    --cc=binutils@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).