summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-09-16 13:22:39 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-09-16 13:22:39 (GMT)
commit45d52c629b18141568525aabc8e263716c2a4151 (patch)
tree5898505848d2fd5a25dd43f302f76adfff855b8b /generic/tclProc.c
parent9618cb1686637d7a1b985c26ed05d65129a661c9 (diff)
downloadtcl-45d52c629b18141568525aabc8e263716c2a4151.zip
tcl-45d52c629b18141568525aabc8e263716c2a4151.tar.gz
tcl-45d52c629b18141568525aabc8e263716c2a4151.tar.bz2
* generic/tclProc.c (ProcWrongNumArgs): [Bugs 3400658,3408830]:
Corrected the handling of procedure error messages (found by TclOO).
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c2
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