diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-28 00:57:04 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-28 00:57:04 (GMT) |
| commit | 174560be0971d7eddc16bd56fd6d578186143bac (patch) | |
| tree | ddc0546dab10c8bc2575020750fc67d405b7b617 /generic/tclCompCmdsSZ.c | |
| parent | 6f6055670dd0d873ec34dcd23ae9f8e282fe60aa (diff) | |
| parent | 2ea70632bbcf5060e5114653d4717480c03c0cee (diff) | |
| download | tcl-174560be0971d7eddc16bd56fd6d578186143bac.zip tcl-174560be0971d7eddc16bd56fd6d578186143bac.tar.gz tcl-174560be0971d7eddc16bd56fd6d578186143bac.tar.bz2 | |
merge trunk
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
| -rw-r--r-- | generic/tclCompCmdsSZ.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c index 1d04d8b..6e31481 100644 --- a/generic/tclCompCmdsSZ.c +++ b/generic/tclCompCmdsSZ.c @@ -1953,11 +1953,13 @@ TclCompileTailcallCmd( return TCL_ERROR; } + /* make room for the nsObjPtr */ + CompileWord(envPtr, tokenPtr, interp, 0); for (i=1 ; i<parsePtr->numWords ; i++) { tokenPtr = TokenAfter(tokenPtr); CompileWord(envPtr, tokenPtr, interp, i); } - TclEmitInstInt1( INST_TAILCALL, parsePtr->numWords-1, envPtr); + TclEmitInstInt1( INST_TAILCALL, parsePtr->numWords, envPtr); return TCL_OK; } |
