1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Avoid EDG -Wtype-limits warnings on unsigned comparisons with zero by conversion from unsigned int to int

This commit is contained in:
makise-homura 2023-11-08 23:59:56 +03:00 committed by Igor Molchanov
parent f8394adf14
commit 595c19a592

View File

@ -1273,7 +1273,7 @@ static const unsigned int daysInMonthLeap[12] =
((dt)->hour == 24 && (dt)->min == 0 && (dt)->sec == 0)
#define VALID_TIME(dt) \
(((VALID_HOUR(dt->hour) && VALID_MIN(dt->min) && \
(((VALID_HOUR((int)dt->hour) && VALID_MIN((int)dt->min) && \
VALID_SEC(dt->sec)) || VALID_END_OF_DAY(dt)) && \
VALID_TZO(dt->tzo))