* ubsan: csky-dis.c:1038 left shift cannot be represented
@ 2020-09-02 8:43 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-09-02 8:43 UTC (permalink / raw)
To: binutils
* 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-02 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02 8:43 ubsan: csky-dis.c:1038 left shift cannot be represented Alan Modra
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).