I've had troubles in the FFI module I'm building when dealing with (unsigned) longs, what happens is that the second unsigned long argument never reached the function I'm calling with ffi_call. I've built a small test (attached) to show this particular problem (in the hope that the problem would disappear, but that didn't happen). I've checked and re-checked how I pass the arguments to ffi_call, I couldn't find anything wrong (debugging libffi internals is not easy :( ).
-- Summary: LibFFI can't handle Longs Product: gcc Version: 3.3.5 Status: UNCONFIRMED Severity: critical Priority: P2 Component: libffi AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pupeno at pupeno dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21229