summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc2
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) {