summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-10-08 12:52:26 (GMT)
committerMarius Kintel <marius@kintel.net>2011-10-08 12:52:26 (GMT)
commitcf178f66e4c7f0a0d389fc163ca367d5db55ddd3 (patch)
tree348a94c364e3cd81ce600f7253c3c15c619dde67 /src/value.cc
parentf5e0f3a531b0c8806e4ebc62cd91ca31275ae481 (diff)
echo output adjustments: same style for vector and range, output boolean values as true/false instead of 1/0
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/value.cc b/src/value.cc
index 685bf81..6685594 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -352,19 +352,19 @@ std::string Value::toString() const
stream << ']';
break;
case RANGE:
- stream << "[ "
+ stream << '['
<< this->range_begin
<< " : "
<< this->range_step
<< " : "
<< this->range_end
- << " ]";
+ << ']';
break;
case NUMBER:
stream << this->num;
break;
case BOOL:
- stream << this->b;
+ stream << (this->b ? "true" : "false");
break;
default:
stream << "undef";
contact: Jan Huwald // Impressum