StringUtil: Require TryParse of float types to use the entire string.
This commit is contained in:
1 parent
4a613dad20
commit
0d254d9cb8
1 file changed
+1
-1
@@ -61,7 +61,7 @@ static bool TryParse(const std::string& str, N* const output)
|
||||
iss.imbue(std::locale("C"));
|
||||
|
||||
N tmp;
|
||||
if (iss >> tmp)
|
||||
if (iss >> tmp && iss.eof())
|
||||
{
|
||||
*output = tmp;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user