diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 19:44:45 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 19:44:45 -0400 |
commit | e199e3863cd9faee5a69d0a18b8944cd9102ff58 (patch) | |
tree | f5b5a1e51457b879dc301e8f6ecc70784155686e | |
parent | a1e1133c806258c5d144c1a2eca64f7d0822e84f (diff) | |
download | fork-ledger-e199e3863cd9faee5a69d0a18b8944cd9102ff58.tar.gz fork-ledger-e199e3863cd9faee5a69d0a18b8944cd9102ff58.tar.bz2 fork-ledger-e199e3863cd9faee5a69d0a18b8944cd9102ff58.zip |
Fixed a call to value_t::cast to use in_place_cast
-rw-r--r-- | src/filters.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc index 0111daf0..8e8bf1ec 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -256,10 +256,8 @@ namespace { switch (value.type()) { case value_t::BOOLEAN: - case value_t::DATETIME: - case value_t::DATE: case value_t::INTEGER: - temp.cast(value_t::AMOUNT); + temp.in_place_cast(value_t::AMOUNT); // fall through... case value_t::AMOUNT: @@ -271,6 +269,8 @@ namespace { flags |= XACT_EXT_COMPOUND; break; + case value_t::DATETIME: + case value_t::DATE: default: assert(false); break; |