summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-05 13:42:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-05 13:42:40 (GMT)
commitfed1ff66dc94e36bd81d2375954f2f011f8c329a (patch)
tree7cd476c6fb585baf7e252bdf0851a25dc2778b48 /generic/tclInt.h
parentd9e28af5f3009abed0834f48bc9b816719ce3e2b (diff)
downloadtcl-fed1ff66dc94e36bd81d2375954f2f011f8c329a.zip
tcl-fed1ff66dc94e36bd81d2375954f2f011f8c329a.tar.gz
tcl-fed1ff66dc94e36bd81d2375954f2f011f8c329a.tar.bz2
More implicit type-casts, for better compatibility with C++
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index f2f097c..df29da8 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -4215,7 +4215,7 @@ MODULE_SCOPE void TclpFreeAllocCache(void *);
(objPtr) = TclThreadAllocObj(); \
} else { \
(objPtr) = cachePtr->firstObjPtr; \
- cachePtr->firstObjPtr = (objPtr)->internalRep.twoPtrValue.ptr1; \
+ cachePtr->firstObjPtr = (Tcl_Obj *)(objPtr)->internalRep.twoPtrValue.ptr1; \
--cachePtr->numObjects; \
} \
} while (0)