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

Fixed warning in UISSUserInterfaceIdiomPreprocessor.m#28

Open
fluidsonic wants to merge 1 commit intorobertwijas:masterfrom
Widgetlabs:fix-interface-idom-warning
Open

Fixed warning in UISSUserInterfaceIdiomPreprocessor.m#28
fluidsonic wants to merge 1 commit intorobertwijas:masterfrom
Widgetlabs:fix-interface-idom-warning

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