[MacRuby-devel] [MacRuby] #469: Time#to_f gives wrong results on 32-bit architecture

MacRuby ruby-noreply at macosforge.org
Mon Nov 30 11:11:47 PST 2009

#469: Time#to_f gives wrong results on 32-bit architecture
 Reporter:  pwilson@…          |       Owner:  lsansonetti@…        
     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"
 $ ruby1.9 -e "puts Time.now.to_f, Time.now.to_i"

Ticket URL: <http://www.macruby.org/trac/ticket/469>
MacRuby <http://macruby.org/>

More information about the MacRuby-devel mailing list