* dsp.igen (do_w_op): Fix compiler warning.
authorThiemo Seufer <ths@networkno.de>
Tue, 7 Nov 2006 14:59:49 +0000 (14:59 +0000)
committerThiemo Seufer <ths@networkno.de>
Tue, 7 Nov 2006 14:59:49 +0000 (14:59 +0000)
sim/mips/ChangeLog
sim/mips/dsp.igen

index 0a87ebdd97f326a65cd61721a19b3067eebb52e8..2f867b5ce349024b2024ad9014070056dc3b43fe 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-07  Thiemo Seufer  <ths@mips.com>
+
+       * dsp.igen (do_w_op): Fix compiler warning.
+
 2006-08-29  Thiemo Seufer  <ths@mips.com>
             David Ung  <davidu@mips.com>
 
index 18aafcbe50a99ab98e2043d9d5a19fab83ad273b..0b337cc001cf7d3a1082bb544b6d40a32b9d91c9 100644 (file)
     h0 = (signed64)h1 + (signed64)h2;
   else // SUB
     h0 = (signed64)h1 - (signed64)h2;
-  if (((h0 & 0x100000000) >> 1) != (h0 & 0x80000000))
+  if (((h0 & 0x100000000LL) >> 1) != (h0 & 0x80000000))
     {
       DSPCR |= DSPCR_OUFLAG4;
-      if (h0 & 0x100000000)
+      if (h0 & 0x100000000LL)
        h0 = 0x80000000;
       else
        h0 = 0x7fffffff;