mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
Use strtod in config_get_float regardless.
This commit is contained in:
parent
2da456d007
commit
651683becc
@ -411,12 +411,8 @@ bool config_get_float(config_file_t *conf, const char *key, float *in)
|
||||
{
|
||||
if (strcmp(key, list->key) == 0)
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
// strtof() is C99/POSIX.
|
||||
// strtof() is C99/POSIX. Just use the more portable kind.
|
||||
*in = (float)strtod(list->value, NULL);
|
||||
#else
|
||||
*in = strtof(list->value, NULL);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
list = list->next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user