Index: src/date.cc |
diff --git a/src/date.cc b/src/date.cc |
index 6b95cb721291bc94f6eba556855c3e8936ff05e7..1f879de1350222b58691f40513339a090e3514a0 100644 |
--- a/src/date.cc |
+++ b/src/date.cc |
@@ -103,8 +103,8 @@ void DateCache::YearMonthDayFromDays( |
days += is_leap; |
// Check if the date is after February. |
- if (days >= 31 + 28 + is_leap) { |
- days -= 31 + 28 + is_leap; |
+ if (days >= 31 + 28 + BoolToInt(is_leap)) { |
+ days -= 31 + 28 + BoolToInt(is_leap); |
// Find the date starting from March. |
for (int i = 2; i < 12; i++) { |
if (days < kDaysInMonths[i]) { |