Skip to content

Commit

Permalink
Fix 'Converting a pointer value of type 'NSNumber *' to a primitive b…
Browse files Browse the repository at this point in the history
…oolean value' warning
  • Loading branch information
Marc Etcheverry committed Dec 30, 2019
1 parent b11baf6 commit 79d413d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FSCalendar/FSCalendarCalculator.m
Expand Up @@ -221,7 +221,7 @@ - (NSInteger)numberOfRowsInMonth:(NSDate *)month
if (self.calendar.placeholderType == FSCalendarPlaceholderTypeFillSixRows) return 6;

NSNumber *rowCount = self.rowCounts[month];
if (!rowCount) {
if (rowCount == nil) {
NSDate *firstDayOfMonth = [self.gregorian fs_firstDayOfMonth:month];
NSInteger weekdayOfFirstDay = [self.gregorian component:NSCalendarUnitWeekday fromDate:firstDayOfMonth];
NSInteger numberOfDaysInMonth = [self.gregorian fs_numberOfDaysInMonth:month];
Expand Down

0 comments on commit 79d413d

Please sign in to comment.