From fcfe59c1f2219408ac2a9cd84b386816ff252221 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 11 Jun 2022 16:37:09 +0200 Subject: Fix warnings, replace some static inline with inline + extern inline, and fix glibc support --- memrchr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memrchr.c') diff --git a/memrchr.c b/memrchr.c index 36385ec..40186c4 100644 --- a/memrchr.c +++ b/memrchr.c @@ -7,7 +7,7 @@ void * libsimple_memrchr(const void *s_, int c_, size_t n_) { char *s = *(char **)(void *)&s_, c = (char)c_; - ssize_t n = n_; + ssize_t n = (ssize_t)n_; while (n-- && s[n] != c); return n < 0 ? NULL : &s[n]; } -- cgit v1.2.3-70-g09d2