I've got the following line of code in one of my Objective-C methods:
if (self.rule.sunday == YES) { do some stuff... }
The line produces the following compiler warning:
Comparison between pointer and integer
It's just a warning, so it's not life-threatening, but it's driving me nuts. Clearly there is some basic concept about integers, pointers, and/or booleans that I am missing. Can somebody please enlighten me so I can fix my code?
As usual, thanks in advance for your help.
UPDATE: For reference, the corrected code looks like this:
if ([self.rule.sunday boolValue] == YES) { do some stuf... }