Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Fixed warning in UISSUserInterfaceIdiomPreprocessor.m #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed warning in UISSUserInterfaceIdiomPreprocessor.m #28

wants to merge 1 commit into from

Conversation

fluidsonic
Copy link

Xcode 5 reports the following warning:

UISSUserInterfaceIdiomPreprocessor.m:25:19: Comparison of constant 'NSNotFound' (2147483647) with expression of type 'UIUserInterfaceIdiom' (aka 'enum UIUserInterfaceIdiom') is always false

Fixed by no longer casting NSInteger (possibly holding a non-UIUserInterfaceIdiom value) to UIUserInterfaceIdiom.

…expression of type 'UIUserInterfaceIdiom' (aka 'enum UIUserInterfaceIdiom') is always false".
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants