Fix signedness issues with strcmp and strncmp #4

Merged
Lephenixnoir merged 2 commits from Heath123/fxlibc:heath123-patch-1 into master 2022-11-24 14:23:22 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit aeeae3810d - Show all commits

View File

@ -6,5 +6,5 @@ int strcmp(const char *s1, const char *s2)
s1 += 1;
s2 += 1;
}
return (*s1 - *s2);
return ((unsigned char) *s1 - (unsigned char) *s2);
}