summaryrefslogtreecommitdiff
path: root/Makefile-girepository.am
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2011-12-21 15:55:18 -0500
committerColin Walters <walters@verbum.org>2011-12-21 15:55:18 -0500
commit1b1cbc0abc7f1d18bcb944ae337c1b2fc3c00c6d (patch)
tree7674d85a4cbcf96557341ce04eb62549ed9c968b /Makefile-girepository.am
parentf79e3c92c8aa06749be50538f43d3a85ddb23674 (diff)
downloadgobject-introspection-1b1cbc0abc7f1d18bcb944ae337c1b2fc3c00c6d.tar.gz
ffi: Treat enums as 32 bit signed values to fix PPC64
To call a function dynamically using ffi, the caller first has to tell ffi the size of all the input arguments of the function. On little endian architectures (like x86_64) specifying a size that's too large will happen to work because of how the bits are laid out in memory. On big endian architectures, however, specifying the wrong size can lead to reading the wrong bits. The function g_type_info_get_ffi_type maps input giargument types to specific sizes. It was assuming enums were word (pointer) sized; in fact they can be in theory any size (1,2,4,8 bytes), but in practice in introspection (via GIArgument) as well as GValue we're limited to 4 byte enums. This commit fixes PPC64 (big endian, 64 bit). Signed-off-by: Colin Walters <walters@verbum.org> https://bugzilla.gnome.org/show_bug.cgi?id=665150
Diffstat (limited to 'Makefile-girepository.am')
0 files changed, 0 insertions, 0 deletions