summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-01 21:05:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-01 21:05:25 (GMT)
commit921a0bbbfb177411e3fe27f4c4654909fd599859 (patch)
treef10affcc12787513eab5ade51bdaf65c4e4c2f32 /generic/tclStrToD.c
parent5a0260cbcca3fe75e95b352ccd9df4d82cc6a1ae (diff)
downloadtcl-921a0bbbfb177411e3fe27f4c4654909fd599859.zip
tcl-921a0bbbfb177411e3fe27f4c4654909fd599859.tar.gz
tcl-921a0bbbfb177411e3fe27f4c4654909fd599859.tar.bz2
More use of TclHasIntRep() macro. Add vfs build director to fossil ignore-glob
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r--generic/tclStrToD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index a46b29a..0770b88 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -540,11 +540,11 @@ TclParseNumber(
if (bytes == NULL) {
if (interp == NULL && endPtrPtr == NULL) {
- if (objPtr->typePtr == &tclDictType) {
+ if (TclHasIntRep(objPtr, &tclDictType)) {
/* A dict can never be a (single) number */
return TCL_ERROR;
}
- if (objPtr->typePtr == &tclListType) {
+ if (TclHasIntRep(objPtr, &tclListType)) {
int length;
/* A list can only be a (single) number if its length == 1 */
TclListObjLength(NULL, objPtr, &length);