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: Id1e40ca9cfb1c271cb391e26698862726b833c8b
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
1 file changed