summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/StringUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
-rw-r--r--Source/Core/Common/Src/StringUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp
index 5165363094..438fa492a0 100644
--- a/Source/Core/Common/Src/StringUtil.cpp
+++ b/Source/Core/Common/Src/StringUtil.cpp
@@ -261,7 +261,7 @@ bool TryParseBool(const char* str, bool* output)
bool TryParseFloat(const char* str, float *output)
{
- double d_val;
+ float d_val;
if (sscanf(str, "%f", &d_val) == 1)
{
*output = (float)d_val;
@@ -275,7 +275,7 @@ bool TryParseFloat(const char* str, float *output)
bool TryParseDouble(const char* str, double *output)
{
- return sscanf(str, "%f", output) == 1;
+ return sscanf(str, "%lf", output) == 1;
}
std::string StringFromInt(int value)