[MacRuby-devel] [MacRuby] #446: Dispatch::TIME_FOREVER too big for signed long long
MacRuby
ruby-noreply at macosforge.org
Sat Nov 21 06:25:04 PST 2009
#446: Dispatch::TIME_FOREVER too big for signed long long
-------------------------------+--------------------------------------------
Reporter: niklas@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.5
Component: MacRuby | Keywords: gcd semaphore long long TIME_FOREVER
-------------------------------+--------------------------------------------
Dispatch::TIME_FOREVER is 18446744073709551615 so it fits into a unsigned
long long. When you call "wait" with TIME_FOREVER on a semaphore the
function in gcd.h (l. 826) uses NUM2LL(time) to convert the time in to a
signed long long which leads to
{{{
core:in `wait:': bignum too big to convert into `long long' (RangeError)
from untitled:1:in `<main>'
}}}
I've seen this in MacRuby 0.5 beta 2
--
Ticket URL: <http://www.macruby.org/trac/ticket/446>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list