stringlib: use system atof implementation instead of broken one

This commit is contained in:
mittorn 2021-02-17 19:07:57 +03:00
parent 8089b88c35
commit e065ff3bcf
1 changed files with 6 additions and 0 deletions

View File

@ -229,6 +229,8 @@ int Q_atoi( const char *str )
float Q_atof( const char *str )
{
#if 0
// BROKEN IMPLEMENTATION, NEED DEBUG
double val = 0;
int c, sign, decimal, total;
@ -292,6 +294,10 @@ float Q_atof( const char *str )
}
return val * sign;
#else
// so use libc instead
return atof(str);
#endif
}
void Q_atov( float *vec, const char *str, size_t siz )