Skip to content

Commit fb874dd

Browse files
committed
json struct bugfix
1 parent cb0658a commit fb874dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/json_expr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ json_objectt json(
131131
{
132132
result["name"]=json_stringt("struct");
133133
json_arrayt &members=result["members"].make_array();
134-
const union_typet::componentst &components=
135-
to_union_type(type).components();
134+
const struct_typet::componentst &components=
135+
to_struct_type(type).components();
136136
for(const auto & it : components)
137137
{
138138
json_objectt &e=members.push_back().make_object();

0 commit comments

Comments
 (0)