From: bernhardheld Date: Thu, 24 Jul 2003 09:36:58 +0000 (+0000) Subject: another small fix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d41133a73b72ddf4960321dd2200df4f9d85dfb5;p=fw%2Fsdcc another small fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2768 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index a25b9f48..32badbcc 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -997,7 +997,7 @@ algebraicOpts (iCode * ic, eBBlock * ebp) /* if BITWISEAND then check if one of them is 0xff... */ /* if yes turn it into assignment */ { - long val; + unsigned val; switch (getSize (operandType (IC_RIGHT (ic)))) { @@ -1013,7 +1013,7 @@ algebraicOpts (iCode * ic, eBBlock * ebp) default: return; } - if (((long) operandLitValue (IC_RIGHT (ic)) & val) == val) + if (((unsigned) operandLitValue (IC_RIGHT (ic)) & val) == val) { ic->op = '='; IC_RIGHT (ic) = IC_LEFT (ic); @@ -1065,7 +1065,7 @@ algebraicOpts (iCode * ic, eBBlock * ebp) /* if BITWISEOR then check if one of them is 0xff... */ /* if yes turn it into 0xff... assignment */ { - long val; + unsigned val; switch (getSize (operandType (IC_RIGHT (ic)))) { @@ -1081,7 +1081,7 @@ algebraicOpts (iCode * ic, eBBlock * ebp) default: return; } - if (((long) operandLitValue (IC_RIGHT (ic)) & val) == val) + if (((unsigned) operandLitValue (IC_RIGHT (ic)) & val) == val) { if (IS_OP_VOLATILE (IC_LEFT (ic))) {