summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-11-16 01:15:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-11-16 01:15:55 (GMT)
commit9e8d5a108f8838862bf2ab1de8b53831ae94c2d6 (patch)
tree73b64a4b599edb15dcd91b8cc82251110d005ec5
parent10ef733f12d8356c8149674542195b702741fb57 (diff)
downloadtcl-9e8d5a108f8838862bf2ab1de8b53831ae94c2d6.zip
tcl-9e8d5a108f8838862bf2ab1de8b53831ae94c2d6.tar.gz
tcl-9e8d5a108f8838862bf2ab1de8b53831ae94c2d6.tar.bz2
D'oh! instructionCount is post-incremented, not pre-incremented...
-rw-r--r--generic/tclExecute.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 41f01fd..466cb6b 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.115 2003/11/16 00:49:20 dkf Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.116 2003/11/16 01:15:55 dkf Exp $
*/
#include "tclInt.h"
@@ -1098,7 +1098,8 @@ TclExecuteByteCode(interp, codePtr)
int traceInstructions = (tclTraceExec == 3);
char cmdNameBuf[21];
#endif
- int instructionCount = 0;
+ int instructionCount = 0; /* Counter that is used to work out
+ * when to call Tcl_AsyncReady() */
/*
* The execution uses a unified stack: first the catch stack, immediately
@@ -1525,7 +1526,7 @@ TclExecuteByteCode(interp, codePtr)
* TclEvalObjvInternal.
*/
- instructionCount = 0;
+ instructionCount = 1;
/*
* Finally, let TclEvalObjvInternal handle the command.