[svn:parrot] r46194 - trunk/src

jimmy at svn.parrot.org jimmy at svn.parrot.org
Fri Apr 30 09:30:59 UTC 2010


Author: jimmy
Date: Fri Apr 30 09:30:58 2010
New Revision: 46194
URL: https://trac.parrot.org/parrot/changeset/46194

Log:
localize vars

Modified:
   trunk/src/sub.c

Modified: trunk/src/sub.c
==============================================================================
--- trunk/src/sub.c	Fri Apr 30 08:53:15 2010	(r46193)
+++ trunk/src/sub.c	Fri Apr 30 09:30:58 2010	(r46194)
@@ -549,10 +549,11 @@
 void *
 Parrot_get_sub_pmc_from_subclass(PARROT_INTERP, ARGIN(PMC *subclass)) {
     ASSERT_ARGS(Parrot_get_sub_pmc_from_subclass)
-    PMC *key, *sub_pmc;
 
     /* Ensure we really do have a subclass of sub. */
     if (VTABLE_isa(interp, subclass, CONST_STRING(interp, "Sub"))) {
+        PMC *key, *sub_pmc;
+
         /* If it's actually a PMC still, probably does the same structure
          * underneath. */
         if (!PObj_is_object_TEST(subclass)) {


More information about the parrot-commits mailing list