diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 14:14:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 14:14:22 -0400 |
commit | 30005d1ba5d87a972d3b68574d90e3af0159a576 (patch) | |
tree | 68d8b0d4a4566537401bb3277986c9bd2c2a7744 /src/value.h | |
parent | 08559bff349b8266331389c9a0c579798ce94b4c (diff) | |
download | fork-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.h | 9 |
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); } } |