discuss-gnustep
[Top][All Lists]
Advanced

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

Re: [NSNumber numberWithFloat:] issue


From: Amr Aboelela
Subject: Re: [NSNumber numberWithFloat:] issue
Date: Fri, 20 Feb 2015 11:10:54 -0800

Hi Stefan,

I already have the latest code.

Regards,

On Thu, Feb 19, 2015 at 9:23 AM, Stefan Bidigaray <stefanbidi@gmail.com> wrote:
Amr, can you try again with the latest version from SVN?  I believe I found a fairly simple way to test for small objects.  I would still welcome some kind of test to include in the test suite so that we do not mess this up in the future.

On Wed, Feb 18, 2015 at 6:16 PM, Amr Aboelela <amraboelela@gmail.com> wrote:
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);


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep





--
Info about Islam: http://wikiz.info/islam


reply via email to

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