diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,10 +76,10 @@ config_val parse_option_value(const config_opt *opt, char *value) { config_val val = {0}; switch (opt->type) { - case TYPE_INT : (long)val.i = strtol(value, NULL, 0); break; + case TYPE_INT : val.i = strtol(value, NULL, 0); break; case TYPE_STRING: val.str = value; break; case TYPE_FLOAT : val.f = strtof(value, NULL); break; - case TYPE_BOOL : (long)val.b = strtol(value, NULL, 0); break; + case TYPE_BOOL : val.b = strtol(value, NULL, 0); break; default : break; } |