summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
commit62a628d51f30fb7754f907d87ef28b3e8a9938a3 (patch)
tree01f7adcaadf8875893ea59d7b147f3d465b7886a /generic/tclClock.c
parentf8cdc473a5a725577e81aaa05b166b710559c62a (diff)
parent9ac22a9200db4d034922f3f15194cc1f3568e230 (diff)
downloadtcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.zip
tcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.tar.gz
tcl-62a628d51f30fb7754f907d87ef28b3e8a9938a3.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 619a310..391a839 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -3456,7 +3456,7 @@ ClockParseFmtScnArgs(
goto baseNow;
}
- if (baseObj->typePtr == &tclBignumType) {
+ if (TclHasInternalRep(baseObj, &tclBignumType)) {
goto baseOverflow;
}
@@ -3472,7 +3472,7 @@ ClockParseFmtScnArgs(
* Note the year is currently an integer, thus avoid to overflow it also.
*/
- if ( baseObj->typePtr == &tclBignumType
+ if (TclHasInternalRep(baseObj, &tclBignumType)
|| baseVal < TCL_MIN_SECONDS || baseVal > TCL_MAX_SECONDS
) {
baseOverflow:
@@ -4463,7 +4463,7 @@ ClockAddObjCmd(
&unitIndex) != TCL_OK) {
goto done;
}
- if (objv[i]->typePtr == &tclBignumType
+ if (TclHasInternalRep(objv[i], &tclBignumType)
|| offs > (unitIndex < CLC_ADD_HOURS ? 0x7fffffff : TCL_MAX_SECONDS)
|| offs < (unitIndex < CLC_ADD_HOURS ? -0x7fffffff : TCL_MIN_SECONDS)
) {