mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 13:36:05 +00:00
Merge "libc: fix memchr implementation" into integration
This commit is contained in:
commit
b73d296d74
1 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue