[svn:parrot] r45047 - trunk/src

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Mar 18 23:17:34 UTC 2010


Author: petdance
Date: Thu Mar 18 23:17:33 2010
New Revision: 45047
URL: https://trac.parrot.org/parrot/changeset/45047

Log:
Renamed a local to stop shadowing. Changed a check of a PMC to use the proper PMC_IS_NULL.

Modified:
   trunk/src/oo.c

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Thu Mar 18 23:14:11 2010	(r45046)
+++ trunk/src/oo.c	Thu Mar 18 23:17:33 2010	(r45047)
@@ -1139,11 +1139,11 @@
     /* Otherwise, remove what was accepted from the merge lists. */
     for (i = 0; i < list_count; i++) {
 
-        PMC * const list       = VTABLE_get_pmc_keyed_int(interp, merge_list, i);
-        const INTVAL list_count = VTABLE_elements(interp, list);
+        PMC * const list           = VTABLE_get_pmc_keyed_int(interp, merge_list, i);
+        const INTVAL sublist_count = VTABLE_elements(interp, list);
         INTVAL j;
 
-        for (j = 0; j < list_count; j++) {
+        for (j = 0; j < sublist_count; j++) {
             if (VTABLE_get_pmc_keyed_int(interp, list, j) == accepted) {
                 VTABLE_delete_keyed_int(interp, list, j);
                 break;
@@ -1191,7 +1191,7 @@
     INTVAL parent_count;
 
     /* Now get immediate parents list. */
-    if (!immediate_parents)
+    if (PMC_IS_NULL(immediate_parents))
         Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_METHOD_NOT_FOUND,
             "Failed to get parents list from class!");
 


More information about the parrot-commits mailing list