summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-04-01 07:18:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-04-01 07:18:35 (GMT)
commit42d16125ee4ad8d3d859e353dadf5ea7d29033b3 (patch)
tree200a744d8b14d9c1dbfb740cab50bf0d49f40a9e /generic/tclExecute.c
parent297becc0c1db88f2e95709bacc171bc13827d923 (diff)
downloadtcl-42d16125ee4ad8d3d859e353dadf5ea7d29033b3.zip
tcl-42d16125ee4ad8d3d859e353dadf5ea7d29033b3.tar.gz
tcl-42d16125ee4ad8d3d859e353dadf5ea7d29033b3.tar.bz2
* generic/tclExecute.c (INST_RETURN): Bytecompiled [return] failed
to reset iPtr->returnCode, causing tests parse-18.17 and parse-18.21 to fail strangely. * tests/parse.test (parse-18.21): Corrected now functioning test.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 40e211d..0a54c16 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.96 2003/03/19 16:51:43 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.97 2003/04/01 07:18:37 dgp Exp $
*/
#include "tclInt.h"
@@ -1225,6 +1225,7 @@ TclExecuteByteCode(interp, codePtr)
#endif
switch (*pc) {
case INST_RETURN:
+ iPtr->returnCode = TCL_OK;
result = TCL_RETURN;
case INST_DONE:
if (stackTop <= initStackTop) {