[MacRuby] #446: Dispatch::TIME_FOREVER too big for signed long long
#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/>
#446: Dispatch::TIME_FOREVER too big for signed long long -------------------------------+-------------------------------------------- Reporter: niklas@… | Owner: ernest.prabhakar@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: gcd semaphore long long TIME_FOREVER -------------------------------+-------------------------------------------- Changes (by ernest.prabhakar@…): * owner: lsansonetti@… => ernest.prabhakar@… -- Ticket URL: <http://www.macruby.org/trac/ticket/446#comment:1> MacRuby <http://macruby.org/>
#446: Dispatch::TIME_FOREVER too big for signed long long --------------------------------------------------+------------------------- Reporter: niklas@… | Owner: ernest.prabhakar@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: gcd semaphore long long TIME_FOREVER | --------------------------------------------------+------------------------- Changes (by ernest.prabhakar@…): * status: new => closed * resolution: => fixed Comment: I'm pretty sure this went away when I converted all the time routines to use doubles in MacRuby 0.6. If you can still reproduce this, let me know. -- Ticket URL: <http://www.macruby.org/trac/ticket/446#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby