summaryrefslogtreecommitdiffstats
path: root/generic/tclGet.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-02-22 20:03:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-02-22 20:03:56 (GMT)
commit812174d5782d57e4dbe97e9a1e378a2a2a4eac1f (patch)
tree5a752cf215bcc6b40fb9849e4195af458fdbe724 /generic/tclGet.c
parent471d3566056a68fe1741cd6cd906d11fdacc80db (diff)
downloadtcl-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.c2
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;
}