diff --git a/xmlschemastypes.c b/xmlschemastypes.c index 97de1473..e98e98ce 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -1403,7 +1403,7 @@ static const unsigned int daysInMonthLeap[12] = ((dt)->hour == 24 && (dt)->min == 0 && (dt)->sec == 0) #define VALID_TIME(dt) \ - (((VALID_HOUR((int)dt->hour) && VALID_MIN((int)dt->min) && \ + ((((dt->hour < 24) && (dt->min < 60) && \ VALID_SEC(dt->sec)) || VALID_END_OF_DAY(dt)) && \ VALID_TZO(dt->tzo))