[cffi-devel] strange behaviour of CFFI with LW on OS X
Stelian Ionescu
sionescu at common-lisp.net
Wed Jun 25 15:17:22 UTC 2008
On Wed, 2008-06-25 at 17:09 +0200, Antoine Allombert wrote:
> Hello everybody,
> I face a weird situation with LW and CFFI on OS X 10.4.
>
> When I evaluate the form :
>
> > (cffi:with-foreign-pointer (ptr 2)
> (setf (cffi:mem-ref ptr :int 0) 0)
> (setf (cffi:mem-ref ptr :int 1) 1)
> (let ((i 0))
> (loop for i from 0 below 2
> collect (cffi:mem-ref ptr :int i))))
>
>
> The result is :
>
> (256 1)
I get the same behaviour with SBCL 1.0.17.42
--
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20080625/5d680c3d/attachment.sig>
More information about the cffi-devel
mailing list