From 1bc8aa85a40870f72db7c99977d0cd177443bccf Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 3 Jun 2016 10:46:15 +0300 Subject: [PATCH] lib/timeutils/timeutils: Fix pedantic warning in coverage build. --- lib/timeutils/timeutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeutils/timeutils.c b/lib/timeutils/timeutils.c index c897131c65..19d3ddbdd3 100644 --- a/lib/timeutils/timeutils.c +++ b/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;