Skip to content

Commit 66d83c9

Browse files
committed
C doesn't support TRUE and FALSE, so this change should make it compilable.
1 parent d6f42d5 commit 66d83c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/expr2c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,9 +1998,9 @@ std::string expr2ct::convert_constant_bool(bool boolean_value)
19981998
{
19991999
// C doesn't really have these
20002000
if(boolean_value)
2001-
return "TRUE";
2001+
return "1";
20022002
else
2003-
return "FALSE";
2003+
return "0";
20042004
}
20052005

20062006
std::string expr2ct::convert_struct(

0 commit comments

Comments
 (0)