diff options
author | christos <christos@NetBSD.org> | 2006-03-22 04:24:14 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2006-03-22 04:24:14 +0000 |
commit | 9a08ea3a64a2f17a6203ad610baab369e46c3c55 (patch) | |
tree | b9c765961d67d6a2c75137acafcc756f30515340 /atc/update.c | |
parent | 436926c776eafbaf1048461eda1ef27219e39e1e (diff) | |
download | bsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.tar.gz bsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.tar.zst bsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.zip |
Coverity CID 692: Another && that should be ||. Boy...
Diffstat (limited to 'atc/update.c')
-rw-r--r-- | atc/update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/update.c b/atc/update.c index 963c57f3..7b7a3eda 100644 --- a/atc/update.c +++ b/atc/update.c @@ -1,4 +1,4 @@ -/* $NetBSD: update.c,v 1.14 2005/08/10 17:53:28 rpaulo Exp $ */ +/* $NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: update.c,v 1.14 2005/08/10 17:53:28 rpaulo Exp $"); +__RCSID("$NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $"); #endif #endif /* not lint */ @@ -260,7 +260,7 @@ name(const PLANE *p) int number(int l) { - if (l < 'a' && l > 'z' && l < 'A' && l > 'Z') + if ((l < 'a' && l > 'z') || (l < 'A' && l > 'Z')) return (-1); else if (l >= 'a' && l <= 'z') return (l - 'a'); |