summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-10 15:02:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-10 15:02:24 (GMT)
commit0b39585b19e94e663d35f0618c748abfb37de5cd (patch)
treea80c320541298c393521f3f88ba7605a004ac050 /generic/tclInterp.c
parent643fbd40d93f1432a5465323319edaa756f309f8 (diff)
downloadtcl-0b39585b19e94e663d35f0618c748abfb37de5cd.zip
tcl-0b39585b19e94e663d35f0618c748abfb37de5cd.tar.gz
tcl-0b39585b19e94e663d35f0618c748abfb37de5cd.tar.bz2
Enhance internal "struct Interp" such that it can handle more than 2^31 levels
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index adf113d..2e57ff5 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -3016,7 +3016,7 @@ ChildRecursionLimit(
}
Tcl_SetRecursionLimit(childInterp, limit);
iPtr = (Interp *) childInterp;
- if (interp == childInterp && iPtr->numLevels > limit) {
+ if (interp == childInterp && iPtr->numLevels > (size_t)limit) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"falling back due to new recursion limit", -1));
Tcl_SetErrorCode(interp, "TCL", "RECURSION", NULL);