From: nobu.nokada@... Date: 2003-05-28T07:52:19+09:00 Subject: Re: Help! I don't want a bignum... Hi, At Tue, 27 May 2003 23:46:32 +0900, Andrew Walrond wrote: > 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 syscall should accept also Bignums. Index: io.c =================================================================== RCS file: /cvs/ruby/src/ruby/io.c,v retrieving revision 1.209 diff -u -2 -p -r1.209 io.c --- io.c 21 May 2003 17:49:18 -0000 1.209 +++ io.c 27 May 2003 16:27:58 -0000 @@ -3450,4 +3450,7 @@ rb_f_syscall(argc, argv) arg[i] = (unsigned long)NUM2LONG(*argv); } + else if (!SPECIAL_CONST_P(*argv) && BUILTIN_TYPE(*argv) == T_BIGNUM) { + arg[i] = rb_big2ulong(*argv); + } else { VALUE v = *argv; -- Nobu Nakada