Просмотр исходного кода

ENH: all ctype function have the same issue: char can be signed or unsigned, since isspace only deal with >=0 value (except EOF) one has to first cast it to unsigned char

Mathieu Malaterre 17 лет назад
Родитель
Сommit
7499bb250d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/kwsys/ProcessUNIX.c

+ 1 - 1
Source/kwsys/ProcessUNIX.c

@@ -2807,7 +2807,7 @@ static char** kwsysProcessParseVerbatimCommand(const char* command)
           }
         }
       }
-    else if(isspace((int) *c))
+    else if(isspace((unsigned char) *c))
       {
       if(in_argument)
         {