diff options
Diffstat (limited to 'rawmemchr.c')
-rw-r--r-- | rawmemchr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rawmemchr.c b/rawmemchr.c index 091d39f..e7803e2 100644 --- a/rawmemchr.c +++ b/rawmemchr.c @@ -4,10 +4,10 @@ void * -libsimple_rawmemchr(const void *s_, int c) +libsimple_rawmemchr(const void *s_, int c_) { - char *s = *(char **)(void *)&s_; - while ((int)*s++ != c); + char *s = *(char **)(void *)&s_, c = (char)c_; + while (*s++ != c); return &s[-1]; } |