Display value booleans as 0 and 1.

This commit is contained in:
John Wiegley 2009-02-05 03:49:14 -04:00
parent 7f5f53de82
commit 327fdca8f4

View file

@ -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: