[MacRuby-devel] [MacRuby] #236: Array.pack bug
MacRuby
ruby-noreply at macosforge.org
Mon Mar 23 09:19:23 PDT 2009
#236: Array.pack bug
----------------------------------------+-----------------------------------
Reporter: dave.baldwin@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords: array pack
----------------------------------------+-----------------------------------
macirb (0.4) and irb (1.8.6) give different results (and lengths) on the
following command to pack 4 integers into 16 bytes in little endian
format. macruby generates 17 bytes and gets the conversion of 66303
wrong.
[0, 110, 66303, 0].pack('VVVV').each_byte{|b| puts b}
macirb irb
0 0
0 0
0 0
0 0
110 110
0 0
0 0
0 0
195 255
191 2
2 1
1 0
0 0
0 0
0 0
0 0
0
--
Ticket URL: <http://www.macruby.org/trac/ticket/236>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list