pack bug on 64-bit ruby

D

Daniel Berger

Hi all,

Solaris 9
/opt/bin/ruby -v
ruby 1.8.1 (2003-10-31) [sparc-solaris2.9]
file /opt/bin/ruby
/opt/bin/ruby: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1
Extensions Required, dynamically linked, not stripped

Looks like there's a 64-bit related bug in pack():

irb(main):007:0> [-1].pack("V")
RangeError: integer 18446744073709551615 too big to convert to `unsigned
int'
from (irb):7:in `pack'
from (irb):7

Regards,

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top