From: Han, K. <Kim...@am...> - 2008-09-18 14:31:55
|
Hi, all I am trying to generate Ruby module from SWIG. I have several methods receiving long type as a parameter. When I first just try to pass a big num directly from Ruby to Swig, SWIG complained "Big num is too large to convert to long." So I added a typemap definition as below. %typemap (in) long { $1 = (double) NUM2DBL($input); } After that addition, SWIG stop complaining but the value was not passed or retrieved correctly. Am I using a long methods for the conversion or is it a bug of NUM2DBL? Or is it a bug of NUM2DBL? |