summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 40e3a07..eb113b3 100644
--- a/config.c
+++ b/config.c
@@ -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;
}