Re: [MacRuby] #748: 32bit Number Limit and Conversion
#748: 32bit Number Limit and Conversion -----------------------------+---------------------------------------------- Reporter: lp@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby Later Component: MacRuby | Keywords: 32bit number -----------------------------+---------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.7 => MacRuby Later Comment: I think MacRuby behaves correctly here. When running in 32-bit mode, the fixnum range is much smaller, so 0x44485250 is actually a Bignum. Passing 0x44485250 to the +[NSNumber numberWithInt:] will get its value coerced to a regular C integer. I am not sure what MacRuby should do differently here. Maybe raising an exception instead of coercing the object? Screening to Later in the meantime. -- Ticket URL: <http://www.macruby.org/trac/ticket/748#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby