Skip to content

Commit 4576daf

Browse files
author
Daniel Kroening
authored
Merge pull request #238 from danpoe/json-bug
json struct bugfix
2 parents cb0658a + fb874dd commit 4576daf

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)