Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit conversion loses integer precision: 'NSInteger' (aka "long") to FBFontSymbolType #9

Open
jmmoody opened this issue Aug 26, 2014 · 0 comments

Comments

@jmmoody
Copy link

jmmoody commented Aug 26, 2014

In Class FBBitmapFontView.m Method numberOfHorizontalDot on line 72

FBFontSymbolType symbol = (int)[number integerValue];

Generates this warning when in XCODE 5.1.1 when compiling for 64 bit. Makes sense as the size of NSInteger is 8 and the enum is 4 in in this scenario. Looks like to me in this case, this can be safely ignored but if you want the warning to go away just change the line of code to this.

FBFontSymbolType symbol = (int)[number integerValue];

and cast the right hand side back to an int so it matches the enum.

@jmmoody jmmoody changed the title mplicit conversion loses integer precision: 'NSInteger' (aka "long") to FBFontSymbolType Implicit conversion loses integer precision: 'NSInteger' (aka "long") to FBFontSymbolType Aug 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant