summaryrefslogtreecommitdiff
path: root/libobjc/selector.c
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/selector.c')
-rw-r--r--libobjc/selector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libobjc/selector.c b/libobjc/selector.c
index 470a2c48cdd..7211f9028b9 100644
--- a/libobjc/selector.c
+++ b/libobjc/selector.c
@@ -164,8 +164,8 @@ sel_types_match (const char* t1, const char* t2)
{
if (*t1 == '+') t1++;
if (*t2 == '+') t2++;
- while (isdigit(*t1)) t1++;
- while (isdigit(*t2)) t2++;
+ while (isdigit((unsigned char)*t1)) t1++;
+ while (isdigit((unsigned char)*t2)) t2++;
/* xxx Remove these next two lines when qualifiers are put in
all selectors, not just Protocol selectors. */
t1 = objc_skip_type_qualifiers(t1);