[svn:parrot] r48218 - trunk/src/call
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Jul 29 19:13:36 UTC 2010
Author: NotFound
Date: Thu Jul 29 19:13:36 2010
New Revision: 48218
URL: https://trac.parrot.org/parrot/changeset/48218
Log:
consting err_check in fill_params for clarity and maybe nano-optimization
Modified:
trunk/src/call/args.c
Modified: trunk/src/call/args.c
==============================================================================
--- trunk/src/call/args.c Thu Jul 29 18:57:25 2010 (r48217)
+++ trunk/src/call/args.c Thu Jul 29 19:13:36 2010 (r48218)
@@ -750,16 +750,14 @@
INTVAL param_index = 0;
INTVAL arg_index = 0;
INTVAL named_count = 0;
- INTVAL err_check = 0;
INTVAL param_count;
INTVAL positional_args;
+ /* Check if we should be throwing errors. This is configured separately
+ * for parameters and return values. */
+ const INTVAL err_check = PARROT_ERRORS_test(interp, direction);
GETATTR_FixedIntegerArray_size(interp, raw_sig, param_count);
- /* Check if we should be throwing errors. This is configured separately
- * for parameters and return values. */
- if (PARROT_ERRORS_test(interp, direction))
- err_check = 1;
/* A null call object is fine if there are no arguments and no returns. */
if (PMC_IS_NULL(call_object)) {
More information about the parrot-commits
mailing list