ubsan: hppa: negation of -2147483648
authorAlan Modra <amodra@gmail.com>
Mon, 20 Jan 2020 02:02:37 +0000 (12:32 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 20 Jan 2020 05:15:50 +0000 (15:45 +1030)
* hppa-dis.c (fput_const): Remove useless cast.

opcodes/ChangeLog
opcodes/hppa-dis.c

index 04eaa863e7c91f56cb0fa96032104d1d8c589102..de9b9e312dd7c6b10cbbd18b9deb9d5e1b083edf 100644 (file)
@@ -1,3 +1,7 @@
+2020-01-20  Alan Modra  <amodra@gmail.com>
+
+       * hppa-dis.c (fput_const): Remove useless cast.
+
 2020-01-20  Alan Modra  <amodra@gmail.com>
 
        * arm-dis.c (print_insn_arm): Wrap 'T' value.
index 3c157017167223d969a2f1284e860c588914e03e..93156da7cb029b3fff40288043040476f0e694cc 100644 (file)
@@ -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);
 }
This page took 0.027181 seconds and 4 git commands to generate.