Commit ca172d06 authored by Victor Yacovlev's avatar Victor Yacovlev

StdLib: fixed compatibility to MinGW 4.6.x

parent 98561bb4
......@@ -969,11 +969,11 @@ public:
}
if ((expform || 0==decimals) && std::string::npos != rpart.find('.')) {
while (rpart.size() > 1 && '0' == rpart.at(rpart.size()-1)) {
rpart.pop_back();
rpart.resize(rpart.length()-1);
}
if ('.' == rpart.at(rpart.length()-1)) {
if (expform)
rpart.pop_back();
rpart.resize(rpart.length()-1);
else
rpart.push_back('0');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment