From: Yukihiro Matsumoto Date: 2006-02-17T11:13:29+09:00 Subject: Re: pack("l"), 64 bit question Hi, In message "Re: pack("l"), 64 bit question" on Fri, 17 Feb 2006 09:46:25 +0900, H.Yamamoto writes: |Are these also unexpected? | |irb(main):009:0> [123].pack("s").unpack("l") |=> [nil] |irb(main):010:0> [123].pack("s").unpack("q") |=> [nil] |irb(main):011:0> [123].pack("l").unpack("q") |=> [nil] Wait, ... I see. "\377\377\377\377".unpack("l_") gives you nil because it's shorter than sizeof(long) on the platform. So they are all OK. Thank you. Ocean, could you commit your patch? matz.