fix(calendar): fix monthly computation with month day mask

Fixes #4915
pull/265/head
Francis Lachapelle 2019-12-24 14:56:49 -05:00
parent d6d33f9f0b
commit aaaa16ed40
1 changed files with 3 additions and 3 deletions

View File

@ -99,12 +99,12 @@ static BOOL NGMonthDaySet_fillWithByMonthDay (NGMonthDaySet *positiveDaySet,
if (dayInMonth > 31)
{
ok = NO;
continue; /* error, value to large */
continue; /* error, value too large */
}
if (dayInMonth < -31)
{
ok = NO;
continue; /* error, value to large */
continue; /* error, value too large */
}
/* adjust negative days */
@ -160,7 +160,7 @@ static inline unsigned iCalDoWForNSDoW (int dow)
/* create range and check whether its in the requested range */
r = [[NGCalendarDateRange alloc] initWithStartDate: _startDate endDate: end];
if ([_r containsDateRange: r])
if ([_r doesIntersectWithDateRange: r])
[_ranges addObject: r];
[r release];
r = nil;