typecase the isspace() argument to int
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Aug 2005 07:32:50 +0000 (07:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 Aug 2005 07:32:50 +0000 (07:32 +0000)
src/main.c

index 07f133b..3b9046d 100644 (file)
@@ -381,7 +381,7 @@ static void warnf(struct Configurable *config, const char *fmt, ...)
       if(len > (int)WARN_TEXTWIDTH) {
         int cut = WARN_TEXTWIDTH-1;
 
-        while(!isspace(ptr[cut]) && cut) {
+        while(!isspace((int)ptr[cut]) && cut) {
           cut--;
         }