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 | 9e6725acf0dcc249a33a22654ac21f3e1ec42de8 (patch) | |
tree | 0fec8c7f2acfd218238c4f65771d849440f1b44e /generic/tclCmdMZ.c | |
parent | 9088907888b8deb7fcd5748c0dcc4472130ee10b (diff) | |
download | tcl-9e6725acf0dcc249a33a22654ac21f3e1ec42de8.zip tcl-9e6725acf0dcc249a33a22654ac21f3e1ec42de8.tar.gz tcl-9e6725acf0dcc249a33a22654ac21f3e1ec42de8.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/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 95debf8..f9f2a28 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -1540,7 +1540,8 @@ StringIsCmd( case STR_IS_BOOL: case STR_IS_TRUE: case STR_IS_FALSE: - if (TCL_OK != Tcl_ConvertToType(NULL, objPtr, &tclBooleanType)) { + if ((objPtr->typePtr != &tclBooleanType) + && (TCL_OK != TclSetBooleanFromAny(NULL, objPtr))) { if (strict) { result = 0; } else { |