diff options
author | David Robillard <d@drobilla.net> | 2010-12-07 21:24:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-07 21:24:40 +0000 |
commit | 5e8c55c15f42aff343d0b6189a6c8f8c50d12775 (patch) | |
tree | 3cfa2ad24121ec14c8b40dc2904909dd2ab1c4d2 /src | |
parent | ac4997fe53f37dd6ab7cf0d0591de481b2972f0e (diff) | |
download | resp-5e8c55c15f42aff343d0b6189a6c8f8c50d12775.tar.gz resp-5e8c55c15f42aff343d0b6189a6c8f8c50d12775.tar.bz2 resp-5e8c55c15f42aff343d0b6189a6c8f8c50d12775.zip |
Pretty print booleans correctly.
git-svn-id: http://svn.drobilla.net/resp/resp@305 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r-- | src/pprint.cpp | 2 |
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: |