summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-02-25 19:50:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-02-25 19:50:43 (GMT)
commitcbd7fd7deca0892822e98e567c484669f68e96ed (patch)
tree571e338680983e5e8921437dea9c8245eb9adc3f /generic/tclClock.c
parent9acb35c45d403342acfbf6bc9b47f51ffe7e8836 (diff)
downloadtcl-cbd7fd7deca0892822e98e567c484669f68e96ed.zip
tcl-cbd7fd7deca0892822e98e567c484669f68e96ed.tar.gz
tcl-cbd7fd7deca0892822e98e567c484669f68e96ed.tar.bz2
New internal macro TclHasIntRep() to re-encapsulate the typePtr field.
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 2c25f6c..233ddd2 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -452,7 +452,7 @@ ClockGetdatefieldsObjCmd(
* that it isn't.
*/
- if (objv[1]->typePtr == &tclBignumType) {
+ if (TclHasIntRep(objv[1], &tclBignumType)) {
Tcl_SetObjResult(interp, literals[LIT_INTEGER_VALUE_TOO_LARGE]);
return TCL_ERROR;
}