ICU-8668 add more parentheses, avoid warnings

X-SVN-Rev: 31105
This commit is contained in:
Markus Scherer 2011-12-13 00:34:52 +00:00
parent d768d1b23c
commit 68aa38ad35
2 changed files with 2 additions and 2 deletions

View file

@ -510,7 +510,7 @@ Locale::operator==( const Locale& other) const
return (uprv_strcmp(other.fullName, fullName) == 0);
}
#define ISASCIIALPHA(c) (((c) >= 'a' && (c) <= 'z' || (c) >= 'A' && (c) <= 'Z'))
#define ISASCIIALPHA(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z'))
/*This function initializes a Locale from a C locale ID*/
Locale& Locale::init(const char* localeID, UBool canonicalize)

View file

@ -1248,7 +1248,7 @@ ulocimp_getLanguage(const char *localeID,
return i;
}
#define ISASCIIALPHA(c) (((c) >= 'a' && (c) <= 'z' || (c) >= 'A' && (c) <= 'Z'))
#define ISASCIIALPHA(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z'))
U_CFUNC int32_t
ulocimp_getScript(const char *localeID,