[svn:parrot] r44535 - trunk/src/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sat Feb 27 17:51:08 UTC 2010


Author: NotFound
Date: Sat Feb 27 17:51:07 2010
New Revision: 44535
URL: https://trac.parrot.org/parrot/changeset/44535

Log:
fix declaration after code from r44534

Modified:
   trunk/src/pmc/opcode.pmc

Modified: trunk/src/pmc/opcode.pmc
==============================================================================
--- trunk/src/pmc/opcode.pmc	Sat Feb 27 17:37:02 2010	(r44534)
+++ trunk/src/pmc/opcode.pmc	Sat Feb 27 17:51:07 2010	(r44535)
@@ -113,8 +113,8 @@
         PMC *result = Parrot_pmc_new(INTERP, enum_class_FixedIntegerArray);
         INTVAL arg_count = info->op_count - 1;
         if (arg_count > 0) {
-            VTABLE_set_integer_native(INTERP, result, arg_count);
             INTVAL i;
+            VTABLE_set_integer_native(INTERP, result, arg_count);
             for (i = 0; i < arg_count; ++i)
                 VTABLE_set_integer_keyed_int(INTERP, result, i, (INTVAL) info->dirs[i]);
         }
@@ -126,8 +126,8 @@
         PMC *result = Parrot_pmc_new(INTERP, enum_class_FixedIntegerArray);
         INTVAL arg_count = info->op_count - 1;
         if (arg_count > 0) {
-            VTABLE_set_integer_native(INTERP, result, arg_count);
             INTVAL i;
+            VTABLE_set_integer_native(INTERP, result, arg_count);
             for (i = 0; i < arg_count; ++i)
                 VTABLE_set_integer_keyed_int(INTERP, result, i, (INTVAL) info->labels[i]);
         }


More information about the parrot-commits mailing list