libc: fix memchr implementation
authorAmbroise Vincent <[email protected]>
Fri, 7 Jun 2019 10:19:45 +0000 (11:19 +0100)
committerAmbroise Vincent <[email protected]>
Thu, 20 Jun 2019 08:59:24 +0000 (09:59 +0100)
commit294062fabf885c78d46e3c6e51963d5791b815b2
treea23426668ea0b2a0c30e10ca1e370348f2c0f9f7
parentde3ad4f0963cdf5206a9736185d23514cfb45111
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 <[email protected]>
lib/libc/memchr.c