From 9a08ea3a64a2f17a6203ad610baab369e46c3c55 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 22 Mar 2006 04:24:14 +0000 Subject: Coverity CID 692: Another && that should be ||. Boy... --- atc/update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atc') 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'); -- cgit v1.2.3-56-ge451