aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-rawmemchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/bench-rawmemchr.c')
-rw-r--r--benchtests/bench-rawmemchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-rawmemchr.c b/benchtests/bench-rawmemchr.c
index f6398f86d9..088c516e59 100644
--- a/benchtests/bench-rawmemchr.c
+++ b/benchtests/bench-rawmemchr.c
@@ -30,7 +30,7 @@ typedef char *(*proto_t) (const char *, int);
char *
generic_rawmemchr (const char *s, int c)
{
- if (c != 0)
+ if ((unsigned char) c != 0)
return memchr (s, c, PTRDIFF_MAX);
return (char *)s + strlen (s);
}