summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-05 17:56:45 +1100
committerquou <quou@disroot.org>2025-01-05 17:56:45 +1100
commit12173bbc77b233997afcc96dede9b292babc7911 (patch)
tree0cf9066991527dd01ee69e9d99f8759840d90609
parentd05d908ac86243ca9413fbcad38e3d09a66c4b8a (diff)
fix fill_prop_number
-rw-r--r--cfg/cfgparse.c2
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);