mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Nits.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5606 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2d6011859a
commit
b6a281eaff
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue