libc: fix memchr implementation
The previous implementation could behave incorrectly because of the sign
extension of the char when compared to the int.

Change-Id: I397838b0ec87a6f1af6972d022a8c19a5184b447
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
1 parent de3ad4f commit 294062fabf885c78d46e3c6e51963d5791b815b2
@Ambroise Vincent Ambroise Vincent authored on 7 Jun 2019
Showing 1 changed file
View
lib/libc/memchr.c