Ticket #469 (closed defect: duplicate)
Time#to_f gives wrong results on 32-bit architecture
| Reported by: | pwilson@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

