summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2004-05-19 21:56:36 (GMT)
committerdkf <dkf@noemail.net>2004-05-19 21:56:36 (GMT)
commitd9e0d92dcf1f11b089bd86eb4e59ea5cd7c5d269 (patch)
treed32a5f5a8c9697ebb117154a74d05b95161df3f6 /generic/tclInterp.c
parentcccffae14e0504c0295a51aca5bd2d6cef7ab72e (diff)
downloadtcl-d9e0d92dcf1f11b089bd86eb4e59ea5cd7c5d269.zip
tcl-d9e0d92dcf1f11b089bd86eb4e59ea5cd7c5d269.tar.gz
tcl-d9e0d92dcf1f11b089bd86eb4e59ea5cd7c5d269.tar.bz2
Enable a test of limiting tight loops.
FossilOrigin-Name: f625a38945e22749ae12046b766d8c3213970ebd
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index fef3568..35efdd3 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInterp.c,v 1.30 2004/05/18 10:13:51 dkf Exp $
+ * RCS: @(#) $Id: tclInterp.c,v 1.31 2004/05/19 21:56:37 dkf Exp $
*/
#include "tclInt.h"
@@ -2655,9 +2655,9 @@ Tcl_LimitCheck(interp)
iPtr->limit.exceeded |= TCL_LIMIT_TIME;
Tcl_Preserve(interp);
RunLimitHandlers(iPtr->limit.timeHandlers, interp);
- if (iPtr->limit.time.sec < now.sec ||
+ if (iPtr->limit.time.sec >= now.sec ||
(iPtr->limit.time.sec == now.sec &&
- iPtr->limit.time.usec < now.usec)) {
+ iPtr->limit.time.usec >= now.usec)) {
iPtr->limit.exceeded &= ~TCL_LIMIT_TIME;
} else if (iPtr->limit.exceeded & TCL_LIMIT_TIME) {
Tcl_ResetResult(interp);