Hi, At Mon, 2 Jun 2008 10:07:53 +0900, Sylvain HENRY wrote in [ruby-core:17036]: > I started writing my own extension for Ruby in C and I > encountered what may be a bug with NUM2INT. > > I just wanted to convert a Ruby VALUE to a C Int. The problem > is that I don't get the same value whether I use NUM2INT, > rb_num2int or NUM2LONG. I couldn't reproduce your result, with ffmpeg stuff commented out. > I use Ruby 1.8.6 (114), the last one in Gentoo. See attached > file for the source code. What's your platform? -- Nobu Nakada