]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-fpu.c
Fix problems in the sim sources discovered by running the cppcheck static analysis...
[thirdparty/binutils-gdb.git] / sim / common / sim-fpu.c
index f3e7f96805ec6302b62d38d6b449322c152f3ead..b6d35d12b14a3de13a3c1302a30df85e2a1a089d 100644 (file)
@@ -1107,7 +1107,7 @@ sim_fpu_add (sim_fpu *f,
 
     /* sign? */
     f->class = sim_fpu_class_number;
-    if ((signed64) f->fraction >= 0)
+    if (((signed64) f->fraction) >= 0)
       f->sign = 0;
     else
       {
@@ -1261,7 +1261,7 @@ sim_fpu_sub (sim_fpu *f,
 
     /* sign? */
     f->class = sim_fpu_class_number;
-    if ((signed64) f->fraction >= 0)
+    if (((signed64) f->fraction) >= 0)
       f->sign = 0;
     else
       {