[cffi-devel] passing value of different type than :int to foreign function

Luís Oliveira luismbo at gmail.com
Wed Jun 30 21:46:23 UTC 2010


On Wed, Jun 30, 2010 at 10:16 PM, N J <raphexion at gmail.com> wrote:
> Because 45.0 is not of type :double

Indeed, (type-of 45.0) => SINGLE-FLOAT. Try passing 45.0d0.

Cheers,

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list