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

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Apr 13 10:25:35 UTC 2010


Author: bacek
Date: Tue Apr 13 10:25:34 2010
New Revision: 45628
URL: https://trac.parrot.org/parrot/changeset/45628

Log:
Properly check for NULL result in find_lex op.

Modified:
   trunk/src/ops/var.ops

Modified: trunk/src/ops/var.ops
==============================================================================
--- trunk/src/ops/var.ops	Tue Apr 13 09:57:48 2010	(r45627)
+++ trunk/src/ops/var.ops	Tue Apr 13 10:25:34 2010	(r45628)
@@ -99,7 +99,7 @@
         PMC_IS_NULL(lex_pad)
             ? NULL
             : VTABLE_get_pmc_keyed_str(interp, lex_pad, lex_name);
-    if (!result) {
+    if (PMC_IS_NULL(result)) {
         opcode_t * const handler = Parrot_ex_throw_from_op_args(interp, NULL,
                 EXCEPTION_LEX_NOT_FOUND,
                 "Lexical '%Ss' not found", lex_name);


More information about the parrot-commits mailing list