From 13f6366c2b1613affbc50331169ad602ed437c4c Mon Sep 17 00:00:00 2001 From: YingJie Fu Date: Sun, 2 Jun 2024 05:23:13 -0700 Subject: [PATCH] core: fix configuration type cast issue on s390x --- src/flb_config_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flb_config_map.c b/src/flb_config_map.c index 463f542889c..dcf3fe357ad 100644 --- a/src/flb_config_map.c +++ b/src/flb_config_map.c @@ -649,7 +649,7 @@ int flb_config_map_set(struct mk_list *properties, struct mk_list *map, void *co } else if (m->type == FLB_CONFIG_MAP_TIME) { m_i_num = (int *) (base + m->offset); - *m_i_num = m->value.val.s_num; + *m_i_num = m->value.val.i_num; } else if (m->type == FLB_CONFIG_MAP_BOOL) { m_bool = (char *) (base + m->offset); @@ -776,7 +776,7 @@ int flb_config_map_set(struct mk_list *properties, struct mk_list *map, void *co *m_d_num = atof(kv->val); } else if (m->type == FLB_CONFIG_MAP_BOOL) { - m_bool = (char *) (base + m->offset); + m_bool = (int *) (base + m->offset); ret = flb_utils_bool(kv->val); if (ret == -1) { flb_error("[config map] invalid value for boolean property '%s=%s'",