From: Robert Date: 2003-05-28T07:52:28+09:00 Subject: Re: Help! I don't want a bignum... "Andrew Walrond" schrieb im Newsbeitrag news:3ED3D146.5030009@walrond.org... > Nobody has a solution?? Surely I haven't stumped you all ;) No, we're waiting for the first poster to shoot him down then. Ooops, that might be me then... :-) My guess would be, that you might have found an error in 'syscall' and / or Fixnum and / or conversion between number literals and objects. Maybe someone more intimate with the ruby source (matz?) could comment on this. Regards robert > Andrew Walrond wrote: > > Ok, I'm sure there is an easy way round this, but I can't see it... > > > > I want to do this... > > > > syscall 88,-18751827,672274793,1126301404 > > > > Which is the kernel sys_reboot call to power-off. > > > > However, ruby kindly converts the last number, 1126301404 (0x4321fedc in > > hex which fits nicely in a long) to a Bignum, but syscall only accepts a > > Fixnum > > > > Any idea how to get around this??? > > > > Andrew Walrond