* ubsan: hppa: negation of -2147483648
@ 2020-01-20 9:51 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-01-20 9:51 UTC (permalink / raw)
To: binutils
* hppa-dis.c (fput_const): Remove useless cast.
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c
index 3c15701716..93156da7cb 100644
--- a/opcodes/hppa-dis.c
+++ b/opcodes/hppa-dis.c
@@ -207,7 +207,7 @@ static void
fput_const (unsigned num, disassemble_info *info)
{
if ((int) num < 0)
- (*info->fprintf_func) (info->stream, "-%x", - (int) num);
+ (*info->fprintf_func) (info->stream, "-%x", -num);
else
(*info->fprintf_func) (info->stream, "%x", num);
}
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-20 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 9:51 ubsan: hppa: negation of -2147483648 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).