Projects

Ticket #469 (closed defect: duplicate)

Opened 2 years ago

Last modified 14 months ago

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

Changed 14 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to duplicate
  • milestone MacRuby 0.5 deleted

Dup of #611.

Note: See TracTickets for help on using tickets.