Put back the casts to unsigned. While no strictly necessary for its

current uses, the name strcmp has strong connotations that shouldn't
lightly be discarded.  This doesn't cost us anything.

Submitted by: bde
This commit is contained in:
imp 2002-12-20 05:49:40 +00:00
parent 8c025307aa
commit c1a18b0842
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ static inline int
strcmp(const char *s1, const char *s2)
{
for (; *s1 == *s2 && *s1; s1++, s2++);
return *s1 - *s2;
return (unsigned char)*s1 - (unsigned char)*s2;
}
#include "ufsread.c"

View File

@ -133,7 +133,7 @@ static inline int
strcmp(const char *s1, const char *s2)
{
for (; *s1 == *s2 && *s1; s1++, s2++);
return *s1 - *s2;
return (unsigned char)*s1 - (unsigned char)*s2;
}
#include "ufsread.c"