]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/fast_atof.h
Fix COSOperator::getSystemMemory
[irrlicht.git] / include / fast_atof.h
index b829eaec2a49a4732892a35a5462abdcd271795a..eea6ff1d396f08716b3b77386b85c6c1010e22bc 100644 (file)
@@ -12,10 +12,6 @@ namespace irr
 {\r
 namespace core\r
 {\r
-       //! Selection of characters which count as decimal point in fast_atof\r
-       // TODO: This should probably also be used in irr::core::string, but\r
-       // the float-to-string code used there has to be rewritten first.\r
-       IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS;\r
 \r
 #define IRR_ATOF_TABLE_SIZE 17\r
 // we write [IRR_ATOF_TABLE_SIZE] here instead of [] to work around a swig bug\r
@@ -321,7 +317,7 @@ inline const char* fast_atof_move(const char* in, f32& result)
 \r
        f32 value = strtof10(in, &in);\r
 \r
-       if ( LOCALE_DECIMAL_POINTS.findFirst(*in) >= 0 )\r
+       if ( *in == '.' )\r
        {\r
                const char* afterDecimal = ++in;\r
                const f32 decimal = strtof10(in, &afterDecimal);\r