Fixed up initalisation of size
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 3 Sep 2001 18:07:44 +0000 (18:07 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 3 Sep 2001 18:07:44 +0000 (18:07 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1219 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/z80/gen.c

index 7c15dcaa646585bf0d34ca440730f039d98b0e81..d348eb555a2d92fceae56fb43d2e69c11bf1b79e 100644 (file)
@@ -1790,6 +1790,9 @@ genUminus (iCode * ic)
       goto release;
     }
 
+  /* otherwise subtract from zero */
+  size = AOP_SIZE (IC_LEFT (ic));
+
   if (AOP_SIZE (IC_RESULT (ic)) == 4 && IS_GB)
     {
       /* Create a new asmop with value zero */
@@ -1800,8 +1803,6 @@ genUminus (iCode * ic)
       goto release;
     }
 
-  /* otherwise subtract from zero */
-  size = AOP_SIZE (IC_LEFT (ic));
   offset = 0;
   _clearCarry();
   while (size--)