Skip to content

Commit 298dbfb

Browse files
Fix _Bool XML output
1 parent 3d9eba2 commit 298dbfb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/util/xml_expr.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ xmlt xml(
263263
result.set_attribute("binary", expr.is_true()?"1":"0");
264264
result.data=expr.is_true()?"TRUE":"FALSE";
265265
}
266+
else if(type.id()==ID_c_bool)
267+
{
268+
result.name="integer";
269+
result.set_attribute("c_type", "_Bool");
270+
result.set_attribute("binary", expr.get_string(ID_value));
271+
mp_integer b;
272+
to_integer(to_constant_expr(expr), b);
273+
result.data=integer2string(b);
274+
}
266275
else
267276
{
268277
result.name="unknown";

0 commit comments

Comments
 (0)