diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-07 19:48:37 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-07 19:48:37 -0400 |
commit | 7b69e8ae318501daf10b082dd91b44dff14b320c (patch) | |
tree | 7a39fe45fabb52d677c876dca3419cd5c5b7d9ea /config.c | |
parent | 3b4dd4475eaf6f890d4bed22200ed417981d1e7c (diff) |
Removed the casts to `long` in `parse_option_value()`.
They weren't needed.
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; } |