diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-08 09:02:50 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-10-08 09:02:50 (GMT) |
commit | 784987f7c11d9990ed7e2db04d85d42f177bdefd (patch) | |
tree | 597e46323b2e5e99c4ce5b7637219be985773d6b /generic/tclCompCmds.c | |
parent | fb703e49177297d9c7ae9c6eb5bdaefe338838b2 (diff) | |
download | tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.zip tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.tar.gz tcl-784987f7c11d9990ed7e2db04d85d42f177bdefd.tar.bz2 |
Working towards better handling of stack balance with break and continue exceptions.
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r-- | generic/tclCompCmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index 7e6b6da..942d74c 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.c @@ -269,7 +269,7 @@ TclCompileArraySetCmd( if (isDataValid && !isDataEven) { PushStringLiteral(envPtr, "list must have an even number of elements"); PushStringLiteral(envPtr, "-errorCode {TCL ARGUMENT FORMAT}"); - TclEmitInstInt4(INST_RETURN_IMM, 1, envPtr); + TclEmitInstInt4(INST_RETURN_IMM, TCL_ERROR, envPtr); TclEmitInt4( 0, envPtr); goto done; } @@ -354,7 +354,7 @@ TclCompileArraySetCmd( TclEmitInstInt1(INST_JUMP_FALSE1, 0, envPtr); PushStringLiteral(envPtr, "list must have an even number of elements"); PushStringLiteral(envPtr, "-errorCode {TCL ARGUMENT FORMAT}"); - TclEmitInstInt4(INST_RETURN_IMM, 1, envPtr); + TclEmitInstInt4(INST_RETURN_IMM, TCL_ERROR, envPtr); TclEmitInt4( 0, envPtr); TclAdjustStackDepth(-1, envPtr); fwd = CurrentOffset(envPtr) - offsetFwd; |