Skip to content

Commit

Permalink
core: fix configuration type cast issue on s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
YingJie Fu committed Jun 2, 2024
1 parent ea7b9f4 commit 13f6366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_config_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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'",
Expand Down

0 comments on commit 13f6366

Please sign in to comment.