public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR26471 UBSAN: tc-metag.c:7038 left shift cannot be represented
@ 2020-08-31 10:50 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-08-31 10:50 UTC (permalink / raw)
  To: binutils

	PR 26471
	* config/tc-metag.c (md_chars_to_number): Make retval unsigned.

diff --git a/gas/config/tc-metag.c b/gas/config/tc-metag.c
index 2816640b29..1e923415a0 100644
--- a/gas/config/tc-metag.c
+++ b/gas/config/tc-metag.c
@@ -7030,7 +7030,7 @@ tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
 static unsigned int
 md_chars_to_number (char *val, int n)
 {
-  int retval;
+  unsigned int retval;
   unsigned char * where = (unsigned char *) val;
 
   for (retval = 0; n--;)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-31 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 10:50 PR26471 UBSAN: tc-metag.c:7038 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).