diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-14 07:30:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-14 07:30:24 -0400 |
commit | 904fff97d07893eff201873e056def09bc5f0f17 (patch) | |
tree | 29ffad64f3cdba15af87d95ef27d2fae01c069d9 /src/times.cc | |
parent | c367dcab82c52283183008b27fe144a82e15ce90 (diff) | |
download | fork-ledger-904fff97d07893eff201873e056def09bc5f0f17.tar.gz fork-ledger-904fff97d07893eff201873e056def09bc5f0f17.tar.bz2 fork-ledger-904fff97d07893eff201873e056def09bc5f0f17.zip |
Fix to allow time periods like "every 14 days"
Diffstat (limited to 'src/times.cc')
-rw-r--r-- | src/times.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/times.cc b/src/times.cc index 5eb969d7..99493f52 100644 --- a/src/times.cc +++ b/src/times.cc @@ -871,7 +871,7 @@ date_interval_t date_parser_t::parse() case lexer_t::token_t::TOK_EVERY: tok = lexer.next_token(); - if (tok == lexer_t::token_t::TOK_INT) { + if (tok.kind == lexer_t::token_t::TOK_INT) { int quantity = boost::get<unsigned short>(*tok.value); tok = lexer.next_token(); switch (tok.kind) { |