Commit b73d296d authored by John Tsichritzis's avatar John Tsichritzis Committed by TrustedFirmware Code Review
Browse files

Merge "libc: fix memchr implementation" into integration

parents f56734fe 294062fa
......@@ -9,10 +9,10 @@
void *memchr(const void *src, int c, size_t len)
{
const char *s = src;
const unsigned char *s = src;
while (len--) {
if (*s == c)
if (*s == (unsigned char)c)
return (void *) s;
s++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment