[cffi-devel] Accessing integer arrays Lisp->C
sfrank at cs.tu-berlin.de
sfrank at cs.tu-berlin.de
Thu Nov 24 07:24:33 UTC 2011
> Hello,
>
> On Mon, Nov 21, 2011 at 9:01 PM, Stephan Frank <sfrank at cs.tu-berlin.de>
> wrote:
>> (with-foreign-object (idx :int len)
>> (map nil (lambda (x)
>> (setf (mem-ref idx :int i) x)
>
> MEM-REF's offset argument is byte-sized. You want MEM-AREF here.
An embarrassing oversight on my part. Thank you very much.
>
>> (incf i))
>> l)
>> (try-it idx len))))
>
>
> BTW, cffi-devel requires subscription, I happened to notice your mail
> in the moderation queue, but usually there's too much spam and I just
> delete everything. Please subscribe. :-)
Yes, I figured that much when my mail didn't make it through and already
have subscribed in the meantime. Thanks again.
Regards,
Stephan
More information about the cffi-devel
mailing list