Silence yet another char ptr signedness warning

This commit is contained in:
Panu Matilainen 2007-07-12 10:00:43 +03:00
parent d0e8db7af4
commit cd4fb0f9f4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ __strchrnul (const char *s, int c)
/* Handle the first few characters by reading one character at a time.
Do this until CHAR_PTR is aligned on a longword boundary. */
for (char_ptr = s; ((unsigned long int) char_ptr
for (char_ptr = (const unsigned char *)s; ((unsigned long int) char_ptr
& (sizeof (longword) - 1)) != 0;
++char_ptr)
if (*char_ptr == c || *char_ptr == '\0')