mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-13 20:58:16 +03:00
Avoid EDG -Wtype-limits warnings on unsigned comparisons with zero by conversion from unsigned int to int
This commit is contained in:
parent
f8394adf14
commit
595c19a592
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user