mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 09:01:07 +00:00
Cast RHS to const unsigned char * to avoid error from Irix-4.0.5's C compiler.
This commit is contained in:
parent
7cc645ed27
commit
58581baf02
@ -64,7 +64,8 @@ memchr (s, c, n)
|
|||||||
|
|
||||||
/* Handle the first few characters by reading one character at a time.
|
/* Handle the first few characters by reading one character at a time.
|
||||||
Do this until CHAR_PTR is aligned on a longword boundary. */
|
Do this until CHAR_PTR is aligned on a longword boundary. */
|
||||||
for (char_ptr = s; n > 0 && ((unsigned long int) char_ptr
|
for (char_ptr = (const unsigned char *) s;
|
||||||
|
n > 0 && ((unsigned long int) char_ptr
|
||||||
& (sizeof (longword) - 1)) != 0;
|
& (sizeof (longword) - 1)) != 0;
|
||||||
--n, ++char_ptr)
|
--n, ++char_ptr)
|
||||||
if (*char_ptr == c)
|
if (*char_ptr == c)
|
||||||
|
Loading…
Reference in New Issue
Block a user