Update 'src/string/strcmp.c'

This commit is contained in:
Heath Mitchell 2022-11-24 13:36:02 +01:00
parent ee42660ea5
commit aeeae3810d
1 changed files with 1 additions and 1 deletions

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);
}