(__gcc_bcmp): Don't depend on signedness of `char'.

From-SVN: r2465
This commit is contained in:
Richard Stallman 1992-10-15 05:04:48 +00:00
parent 22162da3d7
commit 78e3321337
1 changed files with 2 additions and 2 deletions

View File

@ -984,12 +984,12 @@ __fixunssfsi (SFtype a)
int
__gcc_bcmp (s1, s2, size)
char *s1, *s2;
unsigned char *s1, *s2;
size_t size;
{
while (size > 0)
{
char c1 = *s1++, c2 = *s2++;
unsigned char c1 = *s1++, c2 = *s2++;
if (c1 != c2)
return c1 - c2;
size--;