[MacRuby-devel] [MacRuby] #761: Integer 2 multiplication by self seems wrong

MacRuby ruby-noreply at macosforge.org
Thu Jul 8 13:53:15 PDT 2010


#761: Integer 2  multiplication by self seems wrong
----------------------------------+-----------------------------------------
 Reporter:  ustc.lihui@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:  multiply 2           
----------------------------------+-----------------------------------------
Changes (by lsansonetti@…):

  * milestone:  MacRuby 0.6 =>


Comment:

 Reduction:

 {{{$ ./miniruby -e "p 36028797018963968 * 17179869184"
 0
 $ ruby -e "p 36028797018963968 * 17179869184"
 618970019642690137449562112
 }}}

 This sounds like a bug in the bignum promotion code path.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/761#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list