From: ara.t.howard@... Date: 2006-02-16T01:54:46+09:00 Subject: Re: pack("l"), 64 bit question On Thu, 16 Feb 2006, Daniel Berger wrote: > Hi all, > > Ruby 1.8.4 > Solaris 10 > > Is this correct? > > # 32 bit > irb(main):002:0> [-1].pack("l") > => "\377\377\377\377" > irb(main):003:0> "\377\377\377\377".unpack("l") > => [-1] > > # 64 bit > irb(main):002:0> [-1].pack("l") > => "\377\377\377\377" > irb(main):003:0> "\377\377\377\377".unpack("l") > => [4294967295] > > Regards, > > Dan yes. 'l' is unsigned. i think you may want 'i'. regards. -a -- judge your success by what you had to give up in order to get it. - h.h. the 14th dali lama