Skip to content

Commit

Permalink
Merge pull request #2145 from ghaerr/memcmp
Browse files Browse the repository at this point in the history
[libc] Fix libc OpenWatcom memcmp routine
  • Loading branch information
ghaerr authored Dec 23, 2024
2 parents 63da9a3 + 0ae7d12 commit 1740881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/string/memcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ memcmp(const void *s1, const void *s2, size_t n)
{
const unsigned char *su1 = s1;
const unsigned char *su2 = s2;
char res = 0;
signed char res = 0;

for (; n > 0; n--)
if ((res = *su1++ - *su2++))
Expand Down

0 comments on commit 1740881

Please sign in to comment.