fix wrong iterator bug

This commit is contained in:
JCrawfy 2019-11-18 20:43:58 +13:00
parent d69a5dea75
commit 7621b2807a

View File

@ -146,7 +146,7 @@ struct number_converter
}
std::string copy(s);
auto decimal_pt = std::find(copy.begin(), copy.end(), '.');
if (decimal_pt != s.end())
if (decimal_pt != copy.end())
{
*decimal_pt = ',';
}