[Ecls-list] coercing :short in static-ffi

marc daya marc.daya+ecl at gmail.com
Tue Sep 18 07:53:32 UTC 2007


Greetings all,

I'm working with the native (C) library that has functions that expect
short (int16_t) arguments,  but :short is not coerced during static-FFI
compilation.
There's a comment in the cmpffi.lsp saying that shorts are never selected
to unbox data;  what is the reason for shorts being handled differently to
bytes and ints?

Adding :short and :unsigned-short to the 'case' in (wt-coerce-loc), so that
they're handled in the same way as :byte and :unsigned-byte respectively,
seems to work ...

.marc




More information about the ecl-devel mailing list