From 02f97da761879ebec8322064acb96dc597c948cc Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Tue, 7 Nov 2006 14:59:49 +0000 Subject: [PATCH] * dsp.igen (do_w_op): Fix compiler warning. --- sim/mips/ChangeLog | 4 ++++ sim/mips/dsp.igen | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 0a87ebdd97f..2f867b5ce34 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,7 @@ +2006-11-07 Thiemo Seufer + + * dsp.igen (do_w_op): Fix compiler warning. + 2006-08-29 Thiemo Seufer David Ung diff --git a/sim/mips/dsp.igen b/sim/mips/dsp.igen index 18aafcbe50a..0b337cc001c 100644 --- a/sim/mips/dsp.igen +++ b/sim/mips/dsp.igen @@ -69,10 +69,10 @@ 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; -- 2.30.2