diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-02-22 20:03:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-02-22 20:03:56 (GMT) |
commit | 812174d5782d57e4dbe97e9a1e378a2a2a4eac1f (patch) | |
tree | 5a752cf215bcc6b40fb9849e4195af458fdbe724 /generic/tclGet.c | |
parent | 471d3566056a68fe1741cd6cd906d11fdacc80db (diff) | |
download | tcl-812174d5782d57e4dbe97e9a1e378a2a2a4eac1f.zip tcl-812174d5782d57e4dbe97e9a1e378a2a2a4eac1f.tar.gz tcl-812174d5782d57e4dbe97e9a1e378a2a2a4eac1f.tar.bz2 |
Correctly distinguish between internalrep.longValue (in case of boolean) and internalre.wideValue (in case of int). Add comment warning for that
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 2d611fa..12e0e79 100644 --- a/generic/tclGet.c +++ b/generic/tclGet.c @@ -142,7 +142,7 @@ Tcl_GetBoolean( Tcl_Panic("invalid sharing of Tcl_Obj on C stack"); } if (code == TCL_OK) { - *boolPtr = (int)obj.internalRep.wideValue; + TclGetBooleanFromObj(NULL, &obj, boolPtr); } return code; } |