Author: mdiep
Date: Mon Apr 16 18:53:43 2007
New Revision: 18250

Modified:
   trunk/src/pmc/resizablebooleanarray.pmc

Log:
Repeat after me: C89. Also, no trailing spaces.

Modified: trunk/src/pmc/resizablebooleanarray.pmc
==============================================================================
--- trunk/src/pmc/resizablebooleanarray.pmc     (original)
+++ trunk/src/pmc/resizablebooleanarray.pmc     Mon Apr 16 18:53:43 2007
@@ -77,6 +77,8 @@
 */
 
     void set_integer_keyed_int(INTVAL key, INTVAL value) {
+        INTVAL offsetkey;
+
         /* Try to make negative index into a real index */
         if (key < 0) {
             key = SELF.elements() + key;
@@ -88,7 +90,7 @@
         }
 
         /* Check if key is greater than allocated size */
-        INTVAL offsetkey = key + PMC_int_val2(SELF);
+        offsetkey = key + PMC_int_val2(SELF);
         if (offsetkey >= PMC_int_val(SELF))
             DYNSELF.set_integer_native(key+1);
 
@@ -207,7 +209,7 @@
             oldbitalloc = (PMC_int_val(SELF) / MIN_ALLOC + 1) * MIN_ALLOC;
             oldmemsize = oldbitalloc / BITS_PER_CHAR;
             mem_sys_memmove(sdNew + (MIN_ALLOC / BITS_PER_CHAR), sdOld, 
oldmemsize);
-            
+
             /* Replace old array with new array, and free old array */
             PMC_data(SELF) = sdNew;
             mem_sys_free(sdOld);
@@ -261,7 +263,7 @@
              * offset back by one allocation unit (in bytes) */
             Parrot_UInt1 * const sdOld = PMC_data(SELF);
             mem_sys_memmove(sdNew, sdOld + (MIN_ALLOC / BITS_PER_CHAR), 
newmemsize);
-            
+
             /* Replace old array with new array, and free old array */
             PMC_data(SELF) = sdNew;
             mem_sys_free(sdOld);

Reply via email to