Hi,=0A=0AI corrected warnings given by GCC (especially I had to use rb_num2=
long and not rb_num2int but the result is the same).=0A=0A----- Message d'o=
rigine ----=0A> De : Nobuyoshi Nakada <nobu / ruby-lang.org>=0A> =C0 : ruby-c=
ore / ruby-lang.org=0A> Envoy=E9 le : Lundi, 2 Juin 2008, 3h55mn 13s=0A> Obje=
t : Re: Problem with NUM2INT=0A> =0A> Hi,=0A> =0A> At Mon, 2 Jun 2008 10:07=
:53 +0900,=0A> Sylvain HENRY wrote in [ruby-core:17036]:=0A> > I started wr=
iting my own extension for Ruby in C and I=0A> > encountered what may be a =
bug with NUM2INT.=0A> > =0A> > I just wanted to convert a Ruby VALUE to a C=
 Int. The problem=0A> > is that I don't get the same value whether I use NU=
M2INT,=0A> > rb_num2int or NUM2LONG.=0A>=0A> I couldn't reproduce your resu=
lt, with ffmpeg stuff commented=0A> out.=0A=0AYou're right! I forgot to "cl=
ean up" this file from my original project and the problem appears when one=
 of the files "ffmepg/avformat.h" or 'ffmpeg/avcodec.h" is included.=0AI'll=
 try to figure out what's wrong with these files but if someone has an idea=
, please don't hesitate.=0A=0A> =0A> > I use Ruby 1.8.6 (114), the last one=
 in Gentoo. See attached=0A> > file for the source code.=0A> =0A> What's yo=
ur platform?=0A=0A2.6.25-gentoo-r4 #1 SMP Fri May 23 21:40:37 UTC 2008 i686=
 Genuine Intel(R) CPU T2600 @ 2.16GHz GenuineIntel GNU/Linux=0A=0A> -- =0A>=
 Nobu Nakada=0A=0A=0AThanks,=0ASylvain=0A=0A=0A____________________________=
______________________=0ADo You Yahoo!?=0AEn finir avec le spam? Yahoo! Mai=
l vous offre la meilleure protection possible contre les messages non solli=
cit=E9s =0Ahttp://mail.yahoo.fr Yahoo! Mail