Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
CustomCalloutView: Fix int-conversion warning
Browse files Browse the repository at this point in the history
> incompatible pointer to integer conversion returning 'id _Nullable' from a function with result type 'BOOL' (aka 'signed char') [-Wint-conversion]
  • Loading branch information
friedbunny committed Oct 24, 2018
1 parent 95f2f7f commit 03c77b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/ObjectiveC/CustomCalloutView.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ - (void)setCenter:(CGPoint)center {
- (BOOL)isCalloutTappable
{
if ([self.delegate respondsToSelector:@selector(calloutViewShouldHighlight:)]) {
return [self.delegate performSelector:@selector(calloutViewShouldHighlight:) withObject:self];
return (BOOL)[self.delegate performSelector:@selector(calloutViewShouldHighlight:) withObject:self];
}

return NO;
Expand Down

0 comments on commit 03c77b4

Please sign in to comment.