discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSNumber numberWithFloat:] issue


From: Amr Aboelela
Subject: [NSNumber numberWithFloat:] issue
Date: Wed, 18 Feb 2015 16:16:14 -0800

Hello, 

I found that [NSNumber numberWithFloat:] is not toll free bridged with CoreFoundation
if you do CFRetain on an object result from [NSNumber numberWithFloat:] it will crash, and if you do a retainCount on it, it will always give you -1

I feel suspicious about this line:

return boxDouble(aValue, SMALL_FLOAT_MASK);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]