aboutsummaryrefslogtreecommitdiffstats
path: root/rawmemrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'rawmemrchr.c')
-rw-r--r--rawmemrchr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rawmemrchr.c b/rawmemrchr.c
index 82a2d98..3731c00 100644
--- a/rawmemrchr.c
+++ b/rawmemrchr.c
@@ -4,10 +4,10 @@
void *
-libsimple_rawmemrchr(const void *s_, int c, size_t n)
+libsimple_rawmemrchr(const void *s_, int c_, size_t n)
{
- char *s = *(char **)(void *)&s_;
- while ((int)s[--n] != c);
+ char *s = *(char **)(void *)&s_, c = (char)c_;
+ while (s[--n] != c);
return &s[n];
}