algoliasearch-client-objc icon indicating copy to clipboard operation
algoliasearch-client-objc copied to clipboard

Wrong comparison type in ASQuery.m generates a warning at compile time

Open nicoodeimos opened this issue 12 years ago • 1 comments

At line 292 in ASQuery.m this if statement compares wrong RHS type:

if (self.aroundLatLongViaIP != nil)

self.arounfLatLongViaIP is of type BOOL but nil cannot be used to compare BOOL values.

This generates a warning at compile time:

Comparison between pointer and integer ('int' and 'void *')

issue

nicoodeimos avatar Sep 12 '14 10:09 nicoodeimos

Thanks a lot for your bug report, I have just fixed the issue and will publish the new version soon.

speedblue avatar Sep 12 '14 11:09 speedblue