summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmdsSZ.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-03-18 14:35:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-03-18 14:35:03 (GMT)
commit334db97a72461fd68bc9574ff8f6fc628cd40650 (patch)
tree95118ae8af0bcf92d867700bd2cd3b8d5c29792c /generic/tclCompCmdsSZ.c
parent29b735fa6d45d36e552be123a3704a9a84b60d97 (diff)
downloadtcl-334db97a72461fd68bc9574ff8f6fc628cd40650.zip
tcl-334db97a72461fd68bc9574ff8f6fc628cd40650.tar.gz
tcl-334db97a72461fd68bc9574ff8f6fc628cd40650.tar.bz2
Fix silly error in bytecode generation for [try].
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r--generic/tclCompCmdsSZ.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c
index b55367c..25ff92a 100644
--- a/generic/tclCompCmdsSZ.c
+++ b/generic/tclCompCmdsSZ.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompCmdsSZ.c,v 1.3 2010/03/18 10:59:48 dkf Exp $
+ * RCS: @(#) $Id: tclCompCmdsSZ.c,v 1.4 2010/03/18 14:35:04 dkf Exp $
*/
#include "tclInt.h"
@@ -2077,6 +2077,7 @@ IssueTryInstructions(
BODY( bodyToken, 1);
ExceptionRangeEnds(envPtr, range);
PUSH( "0");
+ OP4( REVERSE, 2);
OP1( JUMP1, 4);
ExceptionRangeTarget(envPtr, range, catchOffset);
OP( PUSH_RETURN_CODE);
@@ -2224,6 +2225,7 @@ IssueTryFinallyInstructions(
BODY( bodyToken, 1);
ExceptionRangeEnds(envPtr, range);
PUSH( "0");
+ OP4( REVERSE, 2);
OP1( JUMP1, 4);
ExceptionRangeTarget(envPtr, range, catchOffset);
OP( PUSH_RETURN_CODE);