forked from FWGS/Paranoia2
stringlib: use system atof implementation instead of broken one
This commit is contained in:
parent
8089b88c35
commit
e065ff3bcf
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue