[svn:parrot] r41797 - branches/pcc_reapply/src/call
tene at svn.parrot.org
tene at svn.parrot.org
Sat Oct 10 16:10:14 UTC 2009
Author: tene
Date: Sat Oct 10 16:10:14 2009
New Revision: 41797
URL: https://trac.parrot.org/parrot/changeset/41797
Log:
[pcc] Check returns count properly.
Modified:
branches/pcc_reapply/src/call/args.c
Modified: branches/pcc_reapply/src/call/args.c
==============================================================================
--- branches/pcc_reapply/src/call/args.c Sat Oct 10 16:02:18 2009 (r41796)
+++ branches/pcc_reapply/src/call/args.c Sat Oct 10 16:10:14 2009 (r41797)
@@ -1440,9 +1440,9 @@
}
return;
}
- else if (result_index >= result_count) {
+ else if (return_index >= return_count) {
if (err_check) {
- /* We've used up all the results, but have extra positional
+ /* We've used up all the returns, but have extra positional
* returns left over. */
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"too many positional returns: %d passed, %d expected",
More information about the parrot-commits
mailing list