summaryrefslogtreecommitdiff
path: root/src/derive.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
commit38122c22241cb8fe64f0d17cd3b084418f49edaa (patch)
tree9383f2082602f2d71dde5328fa8bcf3f6609a5b7 /src/derive.cc
parentfb129fa7a1b293d3a04513aee3ca4a489f094754 (diff)
downloadledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.gz
ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.bz2
ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.zip
Corrected warnings g++-4.3.3 was complaining about
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);