mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #8415 from jordan-woyak/try-parse
StringUtil: Require TryParse of float types to use the entire string.
This commit is contained in:
commit
d0114ea61e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue