summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-09 17:38:52 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-09 17:38:52 (GMT)
commite65ea2d6515f205526c9cba77ad0831e3b4077d1 (patch)
tree18e40bf0a2933d7507dbe6f47a787d7808c7ff31 /src/func.cc
parent5c30bcb691729b52c8456f57b42d6514a9325cf8 (diff)
Only quote strings when using the stream operator. Fixes #35
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.cc b/src/func.cc
index a9d5948..4451267 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -311,7 +311,7 @@ Value builtin_str(const Context *, const std::vector<std::string>&, const std::v
std::stringstream stream;
for (size_t i = 0; i < args.size(); i++) {
- stream << args[i];
+ stream << args[i].toString();
}
return Value(stream.str());
}
contact: Jan Huwald // Impressum