From 5e8c55c15f42aff343d0b6189a6c8f8c50d12775 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 7 Dec 2010 21:24:40 +0000 Subject: Pretty print booleans correctly. git-svn-id: http://svn.drobilla.net/resp/resp@305 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/pprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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*)ast)->val; + return out << ((((const ALiteral*)ast)->val) ? "#t" : "#f"); case T_FLOAT: return out << showpoint << ((const ALiteral*)ast)->val; case T_INT32: -- cgit v1.2.1