X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Flexicalcast.cpp;h=9ba642f2ae48bebe826c226ef98b8604e4c49114;hb=7735d609f5ecc2ae924d82c1395f028df9cfabd9;hp=cdd55780b5f612ee86cce7db6beee8c64d80502f;hpb=cc69674bf670178a8076f2ce9740c2e60c4644c9;p=libs%2Fcore.git diff --git a/source/lexicalcast.cpp b/source/lexicalcast.cpp index cdd5578..9ba642f 100644 --- a/source/lexicalcast.cpp +++ b/source/lexicalcast.cpp @@ -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(digits)); if(w>10) { // Rounding bumped us to the next exponent, deal with it