summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2003-05-09 13:53:42 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2003-05-09 13:53:42 (GMT)
commit6b469465e42e9878f801c16c849fa21b089ed825 (patch)
tree18fd77672ec1c7812beabfb07560b3a7acab1ebe /generic
parentbf03b26a12344067b24baca9bc4617566c721b13 (diff)
downloadtcl-6b469465e42e9878f801c16c849fa21b089ed825.zip
tcl-6b469465e42e9878f801c16c849fa21b089ed825.tar.gz
tcl-6b469465e42e9878f801c16c849fa21b089ed825.tar.bz2
fixing previous patch
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index c781814..e76048b 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.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: tclCompile.c,v 1.48 2003/05/09 13:42:39 msofer Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.49 2003/05/09 13:53:42 msofer Exp $
*/
#include "tclInt.h"
@@ -930,7 +930,7 @@ TclCompileScript(interp, script, numBytes, envPtr)
&& !(cmdPtr->flags & CMD_HAS_EXEC_TRACES)
&& !(iPtr->flags & DONT_COMPILE_CMDS_INLINE)) {
int savedNumCmds = envPtr->numCommands;
- int savedCodeNext = envPtr->codeNext;
+ unsigned char *savedCodeNext = envPtr->codeNext;
code = (*(cmdPtr->compileProc))(interp, &parse,
envPtr);
@@ -938,9 +938,9 @@ TclCompileScript(interp, script, numBytes, envPtr)
goto finishCommand;
} else if (code == TCL_OUT_LINE_COMPILE) {
/*
- * Restore numCommands to its correct value, removing
- * any commands compiled before TCL_OUT_LINE_COMPILE
- * [Bug 705406]
+ * Restore numCommands and codeNext to their correct
+ * values, removing any commands compiled before
+ * TCL_OUT_LINE_COMPILE [Bugs 705406 and 735055]
*/
envPtr->numCommands = savedNumCmds;
envPtr->codeNext = savedCodeNext;