Fixed up initalisation of size
[fw/sdcc] / 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--)