(__gcc_bcmp): Don't depend on signedness of `char'.
From-SVN: r2465
This commit is contained in:
parent
22162da3d7
commit
78e3321337
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user