ubsan: hppa: negation of -2147483648
[deliverable/binutils-gdb.git] / opcodes / hppa-dis.c
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.026414 seconds and 4 git commands to generate.