[common] option: option_get_float should return a float

This commit is contained in:
Geoffrey McRae 2021-08-10 01:36:12 +10:00
parent f2b8ff9e8d
commit e41cbf5f32
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ struct Option * option_get (const char * module, const char * name);
int option_get_int (const char * module, const char * name);
const char * option_get_string(const char * module, const char * name);
bool option_get_bool (const char * module, const char * name);
bool option_get_float (const char * module, const char * name);
float option_get_float (const char * module, const char * name);
// called by the main application to parse the command line arguments
bool option_parse(int argc, char * argv[]);

View file

@ -793,7 +793,7 @@ bool option_get_bool(const char * module, const char * name)
return o->value.x_bool;
}
bool option_get_float(const char * module, const char * name)
float option_get_float(const char * module, const char * name)
{
struct Option * o = option_get(module, name);
if (!o)