cffi-devel  

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

N J
Wed, 30 Jun 2010 15:29:18 -0700

On Wed, Jun 30, 2010 at 11:46 PM, Luís Oliveira <luis...@gmail.com> wrote:
> On Wed, Jun 30, 2010 at 10:16 PM, N J <raphex...@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/
>

_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel