tov / libffi-rs

Rust bindings for libffi
Apache License 2.0
100 stars 35 forks source link

Fix return type in call example code #68

Closed uweigand closed 1 year ago

uweigand commented 1 year ago

In the example code provided as part of the documention of call, the return type is not explicitly specified, and will be inferred by the Rust compiler as i32. However, the actual C routine being invoked has a u64 return type. This can cause the test to fail on big-endian platforms.

Fixed by explicitly specifying the u64 return type.

uweigand commented 1 year ago

Ping?