From 7f7cc5b6fdbb5f0338e42d4e12f8e06d8bcadb93 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 19 Mar 2015 14:29:24 +0800 Subject: [PATCH] Fix CID 39905, 39906, 39907: Operands don't affect result. --- estruct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/estruct.h b/estruct.h index 19461ce..35dba87 100644 --- a/estruct.h +++ b/estruct.h @@ -257,11 +257,11 @@ #else -#define isletter(c) isxletter((0xFF & (c))) +#define isletter(c) __isxletter((0xFF & (c))) #define islower(c) isxlower((0xFF & (c))) #define isupper(c) isxupper((0xFF & (c))) -#define isxletter(c) (('a' <= c && LASTLL >= c) || ('A' <= c && LASTUL >= c) || (192<=c && c<=255)) +#define __isxletter(c) (('a' <= c && LASTLL >= c) || ('A' <= c && LASTUL >= c) || (192<=c /* && c<=255 */)) #define isxlower(c) (('a' <= c && LASTLL >= c) || (224 <= c && 252 >= c)) #define isxupper(c) (('A' <= c && LASTUL >= c) || (192 <= c && 220 >= c))