diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-02-04 10:51:00 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-02-04 10:51:00 (GMT) |
| commit | 4fa995628969059b6f261bb142433daf9057ccd9 (patch) | |
| tree | 0fec8c7f2acfd218238c4f65771d849440f1b44e /generic/tclVar.c | |
| parent | 6363872064dc763f259f8c41f30cb1e865fe3d2f (diff) | |
| download | tcl-4fa995628969059b6f261bb142433daf9057ccd9.zip tcl-4fa995628969059b6f261bb142433daf9057ccd9.tar.gz tcl-4fa995628969059b6f261bb142433daf9057ccd9.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; } |
