* src/SDCCicode.c (operandOperation): fixed bug #874819
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 11 Jan 2004 20:52:04 +0000 (20:52 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 11 Jan 2004 20:52:04 +0000 (20:52 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3115 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCicode.c

index ee3e3951eb4dc7ec1702c550bb7685da43b9426b..03476aac97a7e8ab87e787e453e07c3364268678 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,17 +1,21 @@
+2004-01-11 Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCicode.c (operandOperation): fixed bug #874819
+
 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann@web.de>
 
-       * doc/sdccman.lyx: Moved and added some sections, small changes 
-       all over. Telling LaTeX to be less strict with word spacing 
-       to better keep the right margin. Changed some notes about 
+       * doc/sdccman.lyx: Moved and added some sections, small changes
+       all over. Telling LaTeX to be less strict with word spacing
+       to better keep the right margin. Changed some notes about
        maintainance of the ports in section 3.2.1 - is it OK like this?
 
 2004-01-11 Vangelis Rokas <vrokas@otenet.gr>
-       
+
        SDCC source changes:
        * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
        convilong): modified to inform the pic16 port that builtin functions
        are external
-       
+
        PIC16 PORT specific changes:
        * src/pic16/device.c pic16_dump_equates() added,
        processor registers declared internally by the port are emitted in
@@ -77,7 +81,7 @@
        * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
        bytes for last interrupt vector (mcs51)
        * sdcc.spec: fixed typo
-       
+
 2004-01-09 Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
        * src/pic16/main.c: added $l in _asmCmd, changed extension for
        object file from '.rel' to '.o' in port->linker structure,
        changed size of fptr from 2 to 3 in port structure
-       
+
 2004-01-07  Borut Razem <borut.razem@siol.net>
 
        * support/scripts/sdcc.nsi: update PATH
index a3f26e677ac067660253f6058407c220b533bab9..f19f4129f48eae18aec872701de1bb8fa67f158b 100644 (file)
@@ -1202,8 +1202,9 @@ operandOperation (operand * left, operand * right,
     case LEFT_OP:
       /* The number of left shifts is always unsigned. Signed doesn't make
         sense here. Shifting by a negative number is impossible. */
-      retval = operandFromLit ((TYPE_UDWORD) operandLitValue (left) <<
-                              (TYPE_UDWORD) operandLitValue (right));
+      retval = operandFromValue (valCastLiteral (type,
+                                ((TYPE_UDWORD) operandLitValue (left) <<
+                                 (TYPE_UDWORD) operandLitValue (right))));
       break;
     case RIGHT_OP:
       /* The number of right shifts is always unsigned. Signed doesn't make