Fix to allow time periods like "every 14 days"

This commit is contained in:
John Wiegley 2010-06-14 07:30:24 -04:00
parent c367dcab82
commit 904fff97d0

View file

@ -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) {