summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-06-25 19:23:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-06-25 19:23:24 (GMT)
commitc012287fc892b06388cdc3ac85d0b15bac1cdf50 (patch)
tree7898f38dfdc98c38634b26da5020bc2bba4dec5d
parentadb4b18477884c5a501845e06333bef591508171 (diff)
downloadtcl-c012287fc892b06388cdc3ac85d0b15bac1cdf50.zip
tcl-c012287fc892b06388cdc3ac85d0b15bac1cdf50.tar.gz
tcl-c012287fc892b06388cdc3ac85d0b15bac1cdf50.tar.bz2
Replace always true test with assertion.
-rw-r--r--generic/tclCompile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index ccf8938..633966e 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2098,6 +2098,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) {
/*
@@ -2119,7 +2120,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.
*/