diff --git a/options.c b/options.c index 78b0c55..8d528d7 100644 --- a/options.c +++ b/options.c @@ -112,7 +112,7 @@ int ini_get_int(char *section, char *key, int def) return atoi(value); } -double ini_get_double(char *section, char *key, int def) +double ini_get_double(char *section, char *key, double def) { char *value = get_value(section, key); if (value == NULL) diff --git a/options.h b/options.h index 2d2d968..1c8aa71 100644 --- a/options.h +++ b/options.h @@ -7,7 +7,7 @@ int load_ini_file(FILE *); char *ini_get_string(char *section, char *key, const char *def); int ini_get_int(char *section, char *key, int def); -double ini_get_double(char *section, char *key, int def); +double ini_get_double(char *section, char *key, double def); int ini_get_bool(char *section, char *key, int def); void free_ini(void);