From: "H.Yamamoto" Date: 2006-02-17T09:46:25+09:00 Subject: Re: pack("l"), 64 bit question Hello. >|Looks good. The only one I found odd was the [nil] returned by >|"\377\377\377\377".unpack("l_"). Is that expected? The 32 bit version returns >|[-1]. > >No, it should return [4294967295]. How about a patch from Ville >Mattila in [ruby-talk:180126]? 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]