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

N J raphexion at gmail.com
Wed Jun 30 22:28:29 UTC 2010


On Wed, Jun 30, 2010 at 11:46 PM, Luís Oliveira <luismbo at gmail.com> wrote:
> 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,

Ah, thanks a lot. That works great. I think I need to sit down and
read up on the type system in lisp :)
I am not used to it at all.

Once again thanks for the help
/Nik


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




More information about the cffi-devel mailing list