summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/ctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/ctype.h')
-rw-r--r--pjlib/include/pj/ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/include/pj/ctype.h b/pjlib/include/pj/ctype.h
index 0319cfdb..6b8df9f5 100644
--- a/pjlib/include/pj/ctype.h
+++ b/pjlib/include/pj/ctype.h
@@ -62,7 +62,7 @@ PJ_INLINE(int) pj_isalpha(int c) { return isalpha(c); }
* @return Non-zero value if c is a particular representation of
* an ASCII character.
*/
-PJ_INLINE(int) pj_isascii(int c) { return isascii(c); }
+PJ_INLINE(int) pj_isascii(int c) { return c<128 && c>=0; }
/**
* Returns a non-zero value if c is a particular representation of