summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2009-04-27 09:41:48 (GMT)
committernijtmans <nijtmans@noemail.net>2009-04-27 09:41:48 (GMT)
commit1a9912d42064720ce63695346c2fb41ca58e5264 (patch)
tree6d83571d72ea4a51d0e9a6870ffdb8c2f9dc038d /generic/tclIndexObj.c
parent253374d33d901e085f7ecff1fb628a30e9628243 (diff)
downloadtcl-1a9912d42064720ce63695346c2fb41ca58e5264.zip
tcl-1a9912d42064720ce63695346c2fb41ca58e5264.tar.gz
tcl-1a9912d42064720ce63695346c2fb41ca58e5264.tar.bz2
Reset internal INTERP_ALTERNATE_WRONG_ARGS
flag inside the Tcl_WrongNumArgs function, so the caller no longer has to do the reset. FossilOrigin-Name: e1dc3287730505e30fe86e18a24d47767c6674ee
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r--generic/tclIndexObj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 6edd577..bbdae95 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIndexObj.c,v 1.50 2009/02/10 22:49:49 nijtmans Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.51 2009/04/27 09:41:49 nijtmans Exp $
*/
#include "tclInt.h"
@@ -886,6 +886,7 @@ Tcl_WrongNumArgs(
TclNewObj(objPtr);
if (iPtr->flags & INTERP_ALTERNATE_WRONG_ARGS) {
+ iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS;
Tcl_AppendObjToObj(objPtr, Tcl_GetObjResult(interp));
Tcl_AppendToObj(objPtr, " or \"", -1);
} else {