From 327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Feb 2009 03:49:14 -0400 Subject: Display value booleans as 0 and 1. --- src/value.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/value.cc b/src/value.cc index c7ef8617..23da4263 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1634,10 +1634,7 @@ void value_t::print(std::ostream& out, break; case BOOLEAN: - if (as_boolean()) - out << "true"; - else - out << "false"; + out << (as_boolean() ? "1" : "0"); break; case DATETIME: -- cgit v1.2.3