summaryrefslogtreecommitdiff
path: root/src/derive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/derive.cc')
-rw-r--r--src/derive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/derive.cc b/src/derive.cc
index f4bae959..55cdcd2d 100644
--- a/src/derive.cc
+++ b/src/derive.cc
@@ -135,7 +135,7 @@ namespace {
}
else if (check_for_date &&
regex_match((*begin).to_string(), what, dow_mask)) {
- short dow = string_to_day_of_week(what[0]);
+ short dow = static_cast<short>(string_to_day_of_week(what[0]));
date_t date = CURRENT_DATE() - date_duration(1);
while (date.day_of_week() != dow)
date -= date_duration(1);