summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-06-25 20:22:59 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-06-25 20:22:59 (GMT)
commitcfc5628d95dc74341aa80381da850c2f174d8103 (patch)
tree61be9c41a42db3939f39e1adedd3a6c73527eefa /generic/tclCompile.c
parent9b8f81698635aaedfb4f36d41d4d8779e754ce11 (diff)
parent6ed69603db59ee390437a9eb54685869393a243c (diff)
downloadtcl-cfc5628d95dc74341aa80381da850c2f174d8103.zip
tcl-cfc5628d95dc74341aa80381da850c2f174d8103.tar.gz
tcl-cfc5628d95dc74341aa80381da850c2f174d8103.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 2c6af46..955078c 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2498,6 +2498,7 @@ TclCompileScript(
* Emit an invoke instruction for the command. We skip this if a
* compile procedure was found for the command.
*/
+ assert(wordIdx > 0);
if (expand) {
/*
@@ -2519,7 +2520,7 @@ TclCompileScript(
TclEmitOpcode(INST_INVOKE_EXPANDED, envPtr);
envPtr->expandCount--;
TclAdjustStackDepth(1 - wordIdx, envPtr);
- } else if (wordIdx > 0) {
+ } else {
/*
* Save PC -> command map for the TclArgumentBC* functions.
*/