From cd4fb0f9f4c583d60f4a86e62f0c8cc268af408d Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 12 Jul 2007 10:00:43 +0300 Subject: [PATCH] Silence yet another char ptr signedness warning --- misc/fnmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/fnmatch.c b/misc/fnmatch.c index 1675546..aef3397 100644 --- a/misc/fnmatch.c +++ b/misc/fnmatch.c @@ -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') -- 2.7.4