[svn:parrot] r49277 - trunk/src
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Thu Sep 23 20:37:39 UTC 2010
Author: plobsing
Date: Thu Sep 23 20:37:39 2010
New Revision: 49277
URL: https://trac.parrot.org/parrot/changeset/49277
Log:
fix assertions. 0 is allowed as well
Modified:
trunk/src/packout.c
Modified: trunk/src/packout.c
==============================================================================
--- trunk/src/packout.c Thu Sep 23 20:23:19 2010 (r49276)
+++ trunk/src/packout.c Thu Sep 23 20:37:39 2010 (r49277)
@@ -368,7 +368,7 @@
*cursor++ = PARROT_ARG_NC;
/* Argh */
*cursor++ = PackFile_ConstTable_rlookup_num(interp, const_table, n);
- PARROT_ASSERT(cursor[-1] > 0);
+ PARROT_ASSERT(cursor[-1] >= 0);
}
break;
@@ -379,7 +379,7 @@
*cursor++ = PARROT_ARG_SC;
/* Argh */
*cursor++ = PackFile_ConstTable_rlookup_str(interp, const_table, s);
- PARROT_ASSERT(cursor[-1] > 0);
+ PARROT_ASSERT(cursor[-1] >= 0);
}
break;
More information about the parrot-commits
mailing list