Skip to content
Permalink
Browse files

StringUtil: Require TryParse of float types to use the entire string.

  • Loading branch information
jordan-woyak committed Oct 19, 2019
1 parent 4a613da commit 0d254d9cb83929511664f2dfe294e2e867b0c176
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/Common/StringUtil.h
@@ -61,7 +61,7 @@ static bool TryParse(const std::string& str, N* const output)
iss.imbue(std::locale("C")); iss.imbue(std::locale("C"));


N tmp; N tmp;
if (iss >> tmp) if (iss >> tmp && iss.eof())
{ {
*output = tmp; *output = tmp;
return true; return true;

0 comments on commit 0d254d9

Please sign in to comment.
You can’t perform that action at this time.