You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: