diff options
author | quou <quou@disroot.org> | 2025-01-05 17:56:45 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-05 17:56:45 +1100 |
commit | 12173bbc77b233997afcc96dede9b292babc7911 (patch) | |
tree | 0cf9066991527dd01ee69e9d99f8759840d90609 /cfg/cfgparse.c | |
parent | d05d908ac86243ca9413fbcad38e3d09a66c4b8a (diff) |
fix fill_prop_number
Diffstat (limited to 'cfg/cfgparse.c')
-rw-r--r-- | cfg/cfgparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg/cfgparse.c b/cfg/cfgparse.c index 9ac8ec7..b149805 100644 --- a/cfg/cfgparse.c +++ b/cfg/cfgparse.c @@ -81,7 +81,7 @@ static void fill_prop_number( is_f = 1; if (is_f) { p->type = cfg_type_float; - p->as.num = (float)strtod(start, 0); + p->as.flt = (float)strtod(start, 0); } else { p->type = cfg_type_int; p->as.num = (int)strtol(start, 0, 10); |