fast_atof: Silence some uninitialized variable warnings

pull/1498/head
Turo Lamminen 2017-10-17 19:01:36 +03:00
parent a15bfceb7e
commit 76919e87ea
1 changed files with 3 additions and 3 deletions

View File

@ -360,7 +360,7 @@ inline const char* fast_atoreal_move(const char* c, Real& out, bool check_comma
// The same but more human. // The same but more human.
inline ai_real fast_atof(const char* c) inline ai_real fast_atof(const char* c)
{ {
ai_real ret; ai_real ret(0.0);
fast_atoreal_move<ai_real>(c, ret); fast_atoreal_move<ai_real>(c, ret);
return ret; return ret;
} }
@ -368,7 +368,7 @@ inline ai_real fast_atof(const char* c)
inline ai_real fast_atof( const char* c, const char** cout) inline ai_real fast_atof( const char* c, const char** cout)
{ {
ai_real ret; ai_real ret(0.0);
*cout = fast_atoreal_move<ai_real>(c, ret); *cout = fast_atoreal_move<ai_real>(c, ret);
return ret; return ret;
@ -376,7 +376,7 @@ inline ai_real fast_atof( const char* c, const char** cout)
inline ai_real fast_atof( const char** inout) inline ai_real fast_atof( const char** inout)
{ {
ai_real ret; ai_real ret(0.0);
*inout = fast_atoreal_move<ai_real>(*inout, ret); *inout = fast_atoreal_move<ai_real>(*inout, ret);
return ret; return ret;