From: epetrich Date: Thu, 7 Aug 2003 20:59:34 +0000 (+0000) Subject: Bugfix for args regression test failure (from change in how literal signedness is... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9777610ef218f19141eb68b57339bdce5713c2c1;p=fw%2Fsdcc Bugfix for args regression test failure (from change in how literal signedness is handled) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2816 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/z80/ralloc.c b/src/z80/ralloc.c index 8abaeaa4..9eaebde3 100644 --- a/src/z80/ralloc.c +++ b/src/z80/ralloc.c @@ -2964,7 +2964,7 @@ joinPushes (iCode *lic) first = (int)operandLitValue ( IC_LEFT (ic)); second = (int)operandLitValue ( IC_LEFT (uic)); - sprintf (buffer, "%u", ((first << 8) | (second & 0xFF)) & 0xFFFFU); + sprintf (buffer, "%uu", ((first << 8) | (second & 0xFF)) & 0xFFFFU); val = constVal (buffer); SPEC_NOUN (val->type) = V_INT; IC_LEFT (ic)->operand.valOperand = val;