[svn:parrot] r39822 - trunk/compilers/imcc

petdance at svn.parrot.org petdance at svn.parrot.org
Mon Jun 29 06:37:18 UTC 2009


Author: petdance
Date: Mon Jun 29 06:37:17 2009
New Revision: 39822
URL: https://trac.parrot.org/parrot/changeset/39822

Log:
use NULL for null pointers

Modified:
   trunk/compilers/imcc/optimizer.c

Modified: trunk/compilers/imcc/optimizer.c
==============================================================================
--- trunk/compilers/imcc/optimizer.c	Mon Jun 29 06:07:39 2009	(r39821)
+++ trunk/compilers/imcc/optimizer.c	Mon Jun 29 06:37:17 2009	(r39822)
@@ -1245,7 +1245,7 @@
 
         for (count = 1; count != 999; ++count) {
             snprintf(label, size, "%s_post%d", branch->symregs[0]->name, count);
-            if (get_sym(interp, label) == 0) {
+            if (get_sym(interp, label) == NULL) {
                 found = 1;
                 break;
             }


More information about the parrot-commits mailing list