]> git.mxchange.org Git - simgear.git/commitdiff
MSVC fix.
authorehofman <ehofman>
Sun, 22 May 2005 09:18:56 +0000 (09:18 +0000)
committerehofman <ehofman>
Sun, 22 May 2005 09:18:56 +0000 (09:18 +0000)
simgear/misc/strutils.cxx

index 2933e0d58427a6627ebc7f329d36c90baf2d3175..221d4101824bd53f7a36f3e316768191a279f979 100644 (file)
@@ -41,14 +41,14 @@ namespace simgear {
 
            while (i < len)
            {
-               while (i < len && isspace(str[i]))
+               while (i < len && isspace((unsigned char)str[i]))
                {
                    ++i;
                }
 
                j = i;
 
-               while (i < len && !isspace(str[i]))
+               while (i < len && !isspace((unsigned char)str[i]))
                {
                    ++i;
                }
@@ -57,7 +57,7 @@ namespace simgear {
                {
                    result.push_back( str.substr(j, i-j) );
                    ++countsplit;
-                   while (i < len && isspace(str[i]))
+                   while (i < len && isspace((unsigned char)str[i]))
                    {
                        ++i;
                    }