Commit 78e33213 by Richard Stallman

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

From-SVN: r2465
parent 22162da3
......@@ -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--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment