summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-04 14:15:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-04 14:15:14 (GMT)
commit7a6fd9ec654b050268e916845a1481725df1a22a (patch)
tree83fd0fd111fd2b36ba1839c2c55a1b587d8f69e4 /generic/tclVar.c
parent6b77853e6dcdec7566901f635b7298c8fa5dd349 (diff)
parent586e53a4ac38b4a017a8be29a3832632ef62705a (diff)
downloadtcl-7a6fd9ec654b050268e916845a1481725df1a22a.zip
tcl-7a6fd9ec654b050268e916845a1481725df1a22a.tar.gz
tcl-7a6fd9ec654b050268e916845a1481725df1a22a.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 308a88e..49ce6ed 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -5110,7 +5110,8 @@ ParseSearchId(
* Parse the id.
*/
- if (Tcl_ConvertToType(interp, handleObj, &tclArraySearchType) != TCL_OK) {
+ if ((handleObj->typePtr != &tclArraySearchType)
+ && (SetArraySearchObj(interp, handleObj) != TCL_OK)) {
return NULL;
}