summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmds.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2005-06-20 23:10:23 (GMT)
committerdkf <dkf@noemail.net>2005-06-20 23:10:23 (GMT)
commitff6a56d85898025904beb540cd619191cdadc3d0 (patch)
treedf6438af0bd89cac51a139a94e695a0ab0857bcc /generic/tclCompCmds.c
parentd727a0875722c2b13ae8ae364e727dccc5ef1ba6 (diff)
downloadtcl-ff6a56d85898025904beb540cd619191cdadc3d0.zip
tcl-ff6a56d85898025904beb540cd619191cdadc3d0.tar.gz
tcl-ff6a56d85898025904beb540cd619191cdadc3d0.tar.bz2
typos
FossilOrigin-Name: 5e3832c35951cf80685b11d4a42898aaf502fbe3
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r--generic/tclCompCmds.c4
1 files changed, 2 insertions, 2 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;
}