Type: fix
Change-Id: I869e657744e9bba81994ad426731a08e5f1bcad7
Signed-off-by: Dave Barach <dave@barachs.net>
now = now - ((f64) days_in_year) * 86400.0;
year++;
}
- while (now > 0.0);
+ while (now >= 0.0);
days_since_epoch -= days_in_year;
now += ((f64) days_in_year) * 86400;
now = now - ((f64) days_in_month) * 86400.0;
month++;
}
- while (now > 0.0);
+ while (now >= 0.0);
days_since_epoch -= days_in_month;
now += ((f64) days_in_month) * 86400;
day_of_month++;
days_since_epoch++;
}
- while (now > 0.0);
+ while (now >= 0.0);
day_of_month--;
days_since_epoch--;