7 Apr
2008
7 Apr
'08
1:31 a.m.
2008/4/7 Chun Tian (binghe) <binghe.lisp@gmail.com>:
Seems good:
CL-USER 3 > (cffi:with-foreign-object (x :long-long)
(setf (cffi:mem-ref x :long-long) 42) (cffi:mem-ref x :long-long)) 42
Ah, silly me. :long-long is the same size as :long on x86-64. We have to treat :long differently in the compiler macros as well. The attached patch should work better this time. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/