[Kst] extragear/graphics/kst/kst/datasources/ascii

Andrew Walker arwalker at sumusltd.com
Mon Jul 11 19:00:46 CEST 2005


SVN commit 433739 by arwalker:

I suspect that this is what was intended.

 M  +2 -2      ascii.cpp  


--- trunk/extragear/graphics/kst/kst/datasources/ascii/ascii.cpp #433738:433739
@@ -424,7 +424,7 @@
               if (isdigit(_tmpBuf[ch]) || _tmpBuf[ch] == '-' || _tmpBuf[ch] == '.') {
                 v[i] = atof(_tmpBuf + ch);
               } else if (ch + 2 < bufread && tolower(_tmpBuf[ch]) == 'i' &&
-                  tolower(_tmpBuf[ch + 1] == 'n') && tolower(_tmpBuf[ch + 2]) == 'f') {
+                  tolower(_tmpBuf[ch + 1]) == 'n' && tolower(_tmpBuf[ch + 2]) == 'f') {
                 v[i] = INF;
               } else {
                 v[i] = NAN;
@@ -458,7 +458,7 @@
               if (isdigit(_tmpBuf[ch]) || _tmpBuf[ch] == '-' || _tmpBuf[ch] == '.') {
                 v[i] = atof(_tmpBuf + ch);
               } else if (ch + 2 < bufread && tolower(_tmpBuf[ch]) == 'i' &&
-                  tolower(_tmpBuf[ch + 1] == 'n') && tolower(_tmpBuf[ch + 2]) == 'f') {
+                  tolower(_tmpBuf[ch + 1]) == 'n' && tolower(_tmpBuf[ch + 2]) == 'f') {
                 v[i] = INF;
               } else {
                 v[i] = NAN;


More information about the Kst mailing list