From: Suraj Kurapati Date: 2007-07-29T07:40:11+09:00 Subject: Re: checking if machine is 64-bit Suraj Kurapati wrote: > is_machine_64_bit = (2 ** 32).is_a? Fixnum Hmm, after reading the ri manpage for Fixnum, I found a better way: (-1.size) is 4 on a 32-bit machine and 8 on a 64-bit machine. -- Posted via http://www.ruby-forum.com/.