From cfcd7d2c78c01d97354d478046b9a6e1e9278f83 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 23 Sep 2008 09:11:20 +0000 Subject: More ticket #639: fixed warning with gcc about comparison always true git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2307 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjlib/include/pj/ctype.h') diff --git a/pjlib/include/pj/ctype.h b/pjlib/include/pj/ctype.h index 94908d9c..7efae004 100644 --- a/pjlib/include/pj/ctype.h +++ b/pjlib/include/pj/ctype.h @@ -62,7 +62,7 @@ PJ_INLINE(int) pj_isalpha(unsigned char c) { return isalpha(c); } * @return Non-zero value if c is a particular representation of * an ASCII character. */ -PJ_INLINE(int) pj_isascii(unsigned char c) { return c<128 && c>=0; } +PJ_INLINE(int) pj_isascii(unsigned char c) { return c<128; } /** * Returns a non-zero value if c is a particular representation of -- cgit v1.2.3