[cffi-devel] Grovelling 64-bit constants

Julian Stecklina js at alien8.de
Tue Feb 10 18:12:23 UTC 2009


Hello,

I am trying to grovel some constants from libraw1394 and came across
this problem:

libraw1394/csr.h contains:
#define CSR_REGISTER_BASE  0xfffff0000000ULL

Grovelling this using
(include "libraw1394/csr.h")
(constant (+csr-register-base+ "CSR_REGISTER_BASE"))
sets +csr-register-base+ to -268435456.

This is with the current version of cffi from darcs on SBCL 1.0.25
(Linux x86).

Regards,
-- 
Julian Stecklina

Well, take it from an old hand: the only reason it would be easier to
program in C is that you can't easily express complex problems in C,
so you don't. - Erik Naggum (in comp.lang.lisp)





More information about the cffi-devel mailing list