From 904fff97d07893eff201873e056def09bc5f0f17 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 Jun 2010 07:30:24 -0400 Subject: Fix to allow time periods like "every 14 days" --- src/times.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/times.cc') 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(*tok.value); tok = lexer.next_token(); switch (tok.kind) { -- cgit v1.2.3