]> git.tdb.fi Git - libs/core.git/blobdiff - source/lexicalcast.cpp
Fix a problem with MATCH_MASK handling in Regex
[libs/core.git] / source / lexicalcast.cpp
index cdd55780b5f612ee86cce7db6beee8c64d80502f..9ba642f2ae48bebe826c226ef98b8604e4c49114 100644 (file)
@@ -305,7 +305,7 @@ string flt_to_str(T v, const Fmt &f)
        }
 
        // Apply rounding
-       w+=5.0l/pow(10.0l, digits);
+       w+=5.0l/pow(10.0l, static_cast<long double>(digits));
        if(w>10)
        {
                // Rounding bumped us to the next exponent, deal with it