aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pprint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp
index 528683f..88ed90f 100644
--- a/src/pprint.cpp
+++ b/src/pprint.cpp
@@ -144,7 +144,7 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types)
break;
}
case T_BOOL:
- return out << showpoint << ((const ALiteral<bool>*)ast)->val;
+ return out << ((((const ALiteral<bool>*)ast)->val) ? "#t" : "#f");
case T_FLOAT:
return out << showpoint << ((const ALiteral<float>*)ast)->val;
case T_INT32: