summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/times.h b/src/times.h
index 6eadcad3..edc6d8b8 100644
--- a/src/times.h
+++ b/src/times.h
@@ -218,6 +218,7 @@ struct date_duration_t
case YEARS:
return date + gregorian::years(length);
}
+ return date_t();
}
date_t subtract(const date_t& date) const {
@@ -233,6 +234,7 @@ struct date_duration_t
case YEARS:
return date - gregorian::years(length);
}
+ return date_t();
}
string to_string() const {