Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-21 Thread Caio Chassot
On 2010-12-20, at 19:22 , Laurent Sansonetti wrote: > > Excellent! In this snippet, n is a 64-bit bignum, so I suspect something is > going wrong in the converter I couldn't help but prod around in bignum.c but I'm in way over my head. How do you go about debugging this? I suppose I'd try to ru

Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-21 Thread Caio Chassot
On 2010-12-20, at 19:22 , Laurent Sansonetti wrote: > > Excellent! In this snippet, n is a 64-bit bignum, so I suspect something is > going wrong in the converter. Could you file a ticket? We will get that fixed > for 1.0. https://www.macruby.org/trac/ticket/1068 I wonder if MRI ruby 1.9 is no

Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Laurent Sansonetti
Hi Caio, Excellent! In this snippet, n is a 64-bit bignum, so I suspect something is going wrong in the converter. Could you file a ticket? We will get that fixed for 1.0. Laurent On Dec 20, 2010, at 12:49 PM, Caio Chassot wrote: > On 2010-12-20, at 16:37 , Caio Chassot wrote: >> >> Could so

Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Caio Chassot
On 2010-12-20, at 16:37 , Caio Chassot wrote: > > Could someone try to reduce this and take the notification center and iTunes > out of the picture and see if it's just a problem with NSNumber? Oh, that was easier than I thought. #!/usr/bin/env macruby n = 0x8C2CACEFCD8BBABA m = NSN

[MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Caio Chassot
I was trying to get the PersistentID from iTunes tracks from both ScriptingBridge and the notifications iTunes posts to NSDistributedNotificationCenter. I noticed I was getting different results from each. The first byte from the number read from the notification is nearly always garbled (I su