[svn:parrot] r42610 - trunk/src/ops

NotFound at svn.parrot.org NotFound at svn.parrot.org
Fri Nov 20 20:30:37 UTC 2009


Author: NotFound
Date: Fri Nov 20 20:30:35 2009
New Revision: 42610
URL: https://trac.parrot.org/parrot/changeset/42610

Log:
use STRING_IS_NULL in if_null and unless_null ops

Modified:
   trunk/src/ops/cmp.ops

Modified: trunk/src/ops/cmp.ops
==============================================================================
--- trunk/src/ops/cmp.ops	Fri Nov 20 20:30:26 2009	(r42609)
+++ trunk/src/ops/cmp.ops	Fri Nov 20 20:30:35 2009	(r42610)
@@ -552,7 +552,7 @@
 }
 
 op if_null(invar STR, inconst LABEL) {
-  if (!$1) {
+  if (STRING_IS_NULL($1)) {
     goto OFFSET($2);
   }
 }
@@ -576,7 +576,7 @@
 }
 
 op unless_null(invar STR, inconst LABEL) {
-  if ($1) {
+  if (!STRING_IS_NULL($1)) {
     goto OFFSET($2);
   }
 }


More information about the parrot-commits mailing list