scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 1f46fde231171febcc9ebae4353606acc1fc0ccc
parent eee36acd2143365c7c8094175dd425158b4944d4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  3 Nov 2022 07:05:52 +0100

libc/string: Use explicit cast in strpbrk()

Signess of base types is important for pointer type
checks.

Diffstat:
Msrc/libc/string/strpbrk.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libc/string/strpbrk.c b/src/libc/string/strpbrk.c @@ -5,8 +5,8 @@ char * strpbrk(const char *s1, const char *s2) { - const unsigned char *s = s1; - const unsigned char *accept = s2; + const unsigned char *s = (const unsigned char *) s1; + const unsigned char *accept = (const unsigned char *) s2; unsigned ch; char map[__NUMCHARS] = {0};