babl: babl-fish-path improve portability for ppc
authorØyvind Kolås <pippin@gimp.org>
Sat, 15 Feb 2020 06:22:25 +0000 (07:22 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 15 Feb 2020 06:25:33 +0000 (07:25 +0100)
commita585692ae33cedf1823fa788172a5e56c3ef5f2b
treef155972552c41fa83cc4cb344955fc67cc93a665
parentc0219d308d0f1ae6754049fc578325c0494b6961
babl: babl-fish-path improve portability for ppc

Quoting his explaination for why this fixes things (the other half of
the same function was already portable.)

"This breaks on PowerPC 32-bit, because the calling convention for
passing a union is to pass a pointer to a temporary copy of the union.
This pointer isn't as a function pointer.  On some other platforms, the
call would just copy the union, which is like copying the function
pointer.  On all platforms, the compiler doesn't check the type, because
babl_conversion_new() has a va_arg(3) prototype."

Portabilitiy issue figured out by George Koehler, This fixes issue #24.
babl/babl-fish-path.c