[common] option: option_get_float should return a float
This commit is contained in:
1 parent
f2b8ff9e8d
commit
e41cbf5f32
2 files changed
+2
-2
No files matched your search
@@ -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[]);
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user