Skip to content
Commit ca276a82 authored by Colin Walters's avatar Colin Walters
Browse files

function: Correctly convert from ffi return values to GIArgument on big-endian

ffi always returns a long value even if a function's return type is
e.g. guint8.  We can't just directly give ffi_call a GIArgument to
store its return value because when the size of the return type is
smaller than long, it will write into the wrong address.

Instead cast the value at the C level.

Based on a patch from Ray Strode <rstrode@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=665152
parent 38f65d93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment