summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-06-20 23:10:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-06-20 23:10:23 (GMT)
commit1a7d07bf9863f423695b4de79e7305d4d42b6c37 (patch)
treedf6438af0bd89cac51a139a94e695a0ab0857bcc
parent3b4bb3e447eedce8edd412a6fbdab799d129c86e (diff)
downloadtcl-1a7d07bf9863f423695b4de79e7305d4d42b6c37.zip
tcl-1a7d07bf9863f423695b4de79e7305d4d42b6c37.tar.gz
tcl-1a7d07bf9863f423695b4de79e7305d4d42b6c37.tar.bz2
typos
-rw-r--r--generic/tclCompCmds.c4
-rw-r--r--generic/tclExecute.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index aefd8e3..ee415e5 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompCmds.c,v 1.74 2005/06/20 21:27:09 dkf Exp $
+ * RCS: @(#) $Id: tclCompCmds.c,v 1.75 2005/06/20 23:10:23 dkf Exp $
*/
#include "tclInt.h"
@@ -273,7 +273,7 @@ TclCompileCatchCmd(interp, parsePtr, envPtr)
* If syntax does not match what we expect for [catch], do not compile.
* Let runtime checks determine if syntax has changed.
*/
- if ((parsePtr->numWords < 2) && (parsePtr->numWords > 4)) {
+ if ((parsePtr->numWords < 2) || (parsePtr->numWords > 4)) {
return TCL_ERROR;
}
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 9277a70..ad06d99 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.191 2005/06/20 21:27:13 dkf Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.192 2005/06/20 23:10:24 dkf Exp $
*/
#include "tclInt.h"
@@ -1542,6 +1542,7 @@ TclExecuteByteCode(interp, codePtr)
valuePtr = *tosPtr;
if (Tcl_ListObjGetElements(interp, valuePtr, &objc, &objv) != TCL_OK) {
+ result = TCL_ERROR;
TRACE_WITH_OBJ(("%.30s => ERROR: ", O2S(valuePtr)),
Tcl_GetObjResult(interp));
objPtr = expandNestList;