diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-02-04 10:51:00 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-02-04 10:51:00 (GMT) |
commit | 321149f834413ad85324cdc52d552fc5cb9a7c82 (patch) | |
tree | 0fec8c7f2acfd218238c4f65771d849440f1b44e /generic/tclGet.c | |
parent | 6685c10a4d204372333b21dfa1e96204bbe1f4b1 (diff) | |
download | tcl-321149f834413ad85324cdc52d552fc5cb9a7c82.zip tcl-321149f834413ad85324cdc52d552fc5cb9a7c82.tar.gz tcl-321149f834413ad85324cdc52d552fc5cb9a7c82.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.
FossilOrigin-Name: af25d8dc8c18b1d8bed3727b7b6e4de7d5bb15e2
Diffstat (limited to 'generic/tclGet.c')
-rw-r--r-- | generic/tclGet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclGet.c b/generic/tclGet.c index 4c19b55..97e8c7b 100644 --- a/generic/tclGet.c +++ b/generic/tclGet.c @@ -137,7 +137,7 @@ Tcl_GetBoolean( obj.length = strlen(src); obj.typePtr = NULL; - code = Tcl_ConvertToType(interp, &obj, &tclBooleanType); + code = TclSetBooleanFromAny(interp, &obj); if (obj.refCount > 1) { Tcl_Panic("invalid sharing of Tcl_Obj on C stack"); } |