summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 14:14:22 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 14:14:22 -0400
commit30005d1ba5d87a972d3b68574d90e3af0159a576 (patch)
tree68d8b0d4a4566537401bb3277986c9bd2c2a7744 /src/value.h
parent08559bff349b8266331389c9a0c579798ce94b4c (diff)
downloadfork-ledger-30005d1ba5d87a972d3b68574d90e3af0159a576.tar.gz
fork-ledger-30005d1ba5d87a972d3b68574d90e3af0159a576.tar.bz2
fork-ledger-30005d1ba5d87a972d3b68574d90e3af0159a576.zip
Push a sequence onto a sequence only appends now
Previously, it would merge sequences A and B.
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/value.h b/src/value.h
index da6e2ed6..ec0a329a 100644
--- a/src/value.h
+++ b/src/value.h
@@ -795,14 +795,7 @@ public:
*this = sequence_t();
if (! is_sequence())
in_place_cast(SEQUENCE);
-
- if (! val.is_sequence()) {
- as_sequence_lval().push_back(val);
- } else {
- const sequence_t& val_seq(val.as_sequence());
- std::copy(val_seq.begin(), val_seq.end(),
- back_inserter(as_sequence_lval()));
- }
+ as_sequence_lval().push_back(val);
}
}