From: ehofman Date: Sun, 22 May 2005 09:18:56 +0000 (+0000) Subject: MSVC fix. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e52a08a476704864c2298f628441a3991d5d566;p=simgear.git MSVC fix. --- diff --git a/simgear/misc/strutils.cxx b/simgear/misc/strutils.cxx index 2933e0d5..221d4101 100644 --- a/simgear/misc/strutils.cxx +++ b/simgear/misc/strutils.cxx @@ -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; }