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
CFNumber has no type for bool specifically, instead, it stores them as a char type. Normally, in ObjC Foundation, you would use the constants kCFBooleanTrue and kCFBooleanFalse to represent boolean values explicitly. However, if you try to cast either of those values to NSNumber with SwiftFoundation (i.e. unsafeBitCast(kCFBooleanFalse, NSNumber.self)), it creates an invalid object.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: e6126b314e1e5f45af977d91606ef9b1
duplicates:
Issue Description:
Or, CFBooleanRef cannot be used as an NSNumber.
CFNumber has no type for bool specifically, instead, it stores them as a char type. Normally, in ObjC Foundation, you would use the constants kCFBooleanTrue and kCFBooleanFalse to represent boolean values explicitly. However, if you try to cast either of those values to NSNumber with SwiftFoundation (i.e. unsafeBitCast(kCFBooleanFalse, NSNumber.self)), it creates an invalid object.
The text was updated successfully, but these errors were encountered: