diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-04 10:51:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-04 10:51:00 (GMT) |
commit | 586e53a4ac38b4a017a8be29a3832632ef62705a (patch) | |
tree | 0fec8c7f2acfd218238c4f65771d849440f1b44e /generic/tclVar.c | |
parent | d92d307894b14bbb065fdb65c5158f391da00cf1 (diff) | |
download | tcl-586e53a4ac38b4a017a8be29a3832632ef62705a.zip tcl-586e53a4ac38b4a017a8be29a3832632ef62705a.tar.gz tcl-586e53a4ac38b4a017a8be29a3832632ef62705a.tar.bz2 |
Eliminate all Tcl_ConvertToType calls and all direct calls to typePtr->setFromAnyProc (except the call from inside the Tcl_ConvertToType function) from the Tcl core.
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r-- | generic/tclVar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index e780d47..6bf4564 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -5113,7 +5113,8 @@ ParseSearchId( * Parse the id. */ - if (Tcl_ConvertToType(interp, handleObj, &tclArraySearchType) != TCL_OK) { + if ((handleObj->typePtr != &tclArraySearchType) + && (SetArraySearchObj(interp, handleObj) != TCL_OK)) { return NULL; } |