Browse Source

lib/timeutils/timeutils: Fix pedantic warning in coverage build.

pull/2147/merge
Paul Sokolovsky 9 years ago
parent
commit
1bc8aa85a4
  1. 2
      lib/timeutils/timeutils.c

2
lib/timeutils/timeutils.c

@ -204,7 +204,7 @@ mp_uint_t timeutils_mktime(mp_uint_t year, mp_int_t month, mp_int_t mday,
}
mday += timeutils_days_in_month(year, month);
}
while (mday > timeutils_days_in_month(year, month)) {
while ((mp_uint_t)mday > timeutils_days_in_month(year, month)) {
mday -= timeutils_days_in_month(year, month);
if (++month == 13) {
month = 1;

Loading…
Cancel
Save