Re: Did 1.9 deprecate NUM2INT?



Jeremy Henty wrote:
On 2010-04-25, Jeremy Henty <onepoint@xxxxxxxxxxxxxx> (ie. *me*)
wrote:

I just upgraded to 1.9 and now my extension won't compile, complaining
that:

error: 'NUM2INT' was not declared in this scope

OK, I compiled a test example and NUM2INT has *not* disappeared. So
why would a source file that used NUM2INT and compiled perfectly well
under 1.8, suddenly fail to find NUM2INT under 1.9?

Maybe what changed is which file includes which other files, and ruby.h
is no longer included? Try including it explicitly...

.



Relevant Pages

  • Re: Did 1.9 deprecate NUM2INT?
    ... 'NUM2INT' was not declared in this scope ... I compiled a test example and NUM2INT has *not* disappeared. ... why would a source file that used NUM2INT and compiled perfectly well ... Jeremy Henty ...
    (comp.lang.ruby)
  • Re: Did 1.9 deprecate NUM2INT?
    ... I wonder that there even was such a function loosing precision. ... If you still want this cast just do: ... Did 1.9 deprecate NUM2INT? ... Jeremy Henty ...
    (comp.lang.ruby)