diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 21:56:36 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-19 21:56:36 (GMT) |
commit | 4fb6d54c3cbe8ac23f1789bc21de3b5d104859ce (patch) | |
tree | d32a5f5a8c9697ebb117154a74d05b95161df3f6 /generic | |
parent | bb3bf75ad9ba1ebd99869d5a4298148d0825919c (diff) | |
download | tcl-4fb6d54c3cbe8ac23f1789bc21de3b5d104859ce.zip tcl-4fb6d54c3cbe8ac23f1789bc21de3b5d104859ce.tar.gz tcl-4fb6d54c3cbe8ac23f1789bc21de3b5d104859ce.tar.bz2 |
Enable a test of limiting tight loops.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclInterp.c | 6 |
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); |