#469: Time#to_f gives wrong results on 32-bit architecture -------------------------------+-------------------------------------------- Reporter: pwil...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Running the latest MacRuby nightly on a 32-bit machine, I get incorrect results back from Time#to_f. The value is always an integral value and increments in steps of 512 seconds. The integer value is in fact an even multiple of 512. The ruby1.9 trunk behaves correctly as does MacRuby running in 64-bit mode:
{{{ $ macruby -e "puts Time.now.to_f, Time.now.to_i" 1259608064.0 1259608103 $ ruby1.9 -e "puts Time.now.to_f, Time.now.to_i" 1259608104.176155 1259608104 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/469> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel