diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-09-16 13:22:39 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-09-16 13:22:39 (GMT) |
commit | 9028e5825b7fb7395e842ac60486fc7b54d30f4e (patch) | |
tree | 5898505848d2fd5a25dd43f302f76adfff855b8b /generic | |
parent | 5607dedaa88b132947328b366d78dc0f79cdd5f6 (diff) | |
download | tcl-9028e5825b7fb7395e842ac60486fc7b54d30f4e.zip tcl-9028e5825b7fb7395e842ac60486fc7b54d30f4e.tar.gz tcl-9028e5825b7fb7395e842ac60486fc7b54d30f4e.tar.bz2 |
* generic/tclProc.c (ProcWrongNumArgs): [Bugs 3400658,3408830]:
Corrected the handling of procedure error messages (found by TclOO).
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclProc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c index 89bd0b9..43e88c6 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -1092,6 +1092,8 @@ ProcWrongNumArgs( if (framePtr->isProcCallFrame & FRAME_IS_LAMBDA) { desiredObjs[0] = Tcl_NewStringObj("lambdaExpr", -1); } else { + ((Interp *) interp)->ensembleRewrite.numInsertedObjs -= skip - 1; + #ifdef AVOID_HACKS_FOR_ITCL desiredObjs[0] = framePtr->objv[skip-1]; #else |