Description: Use ffi_arg type
 use ffi_arg type for libffi nativecall return types
 .
 This fixes issues on big endian machines, and is according to
 https://github.com/libffi/libffi/issues/286 the right way to handle
 it anyway.
 .
 commit 45d5c13ecbeeb085ddaaabec8150b6051b90f023Date: Thu Oct 27 17:55:36 2016 +0200
Author: Tobias Leich <email@froggs.de>
Applied-Upstream: yes
--- a/src/core/nativecall_libffi.c
+++ b/src/core/nativecall_libffi.c
@@ -580,15 +580,15 @@
                     break;
                 }
                 case MVM_NATIVECALL_ARG_CHAR: {
-                    signed char ret;
+                    ffi_arg ret;
                     ffi_call(&cif, entry_point, &ret, values);
-                    result = MVM_nativecall_make_int(tc, res_type, ret);
+                    result = MVM_nativecall_make_int(tc, res_type, (signed char)ret);
                     break;
                 }
                 case MVM_NATIVECALL_ARG_SHORT: {
-                    signed short ret;
+                    ffi_arg ret;
                     ffi_call(&cif, entry_point, &ret, values);
-                    result = MVM_nativecall_make_int(tc, res_type, ret);
+                    result = MVM_nativecall_make_int(tc, res_type, (signed short)ret);
                     break;
                 }
                 case MVM_NATIVECALL_ARG_INT: {
@@ -670,15 +670,15 @@
                     break;
                 }
                 case MVM_NATIVECALL_ARG_UCHAR: {
-                    unsigned char ret;
+                    ffi_arg ret;
                     ffi_call(&cif, entry_point, &ret, values);
-                    result = MVM_nativecall_make_int(tc, res_type, ret);
+                    result = MVM_nativecall_make_int(tc, res_type, (unsigned char)ret);
                     break;
                 }
                 case MVM_NATIVECALL_ARG_USHORT: {
-                    unsigned short ret;
+                    ffi_arg ret;
                     ffi_call(&cif, entry_point, &ret, values);
-                    result = MVM_nativecall_make_int(tc, res_type, ret);
+                    result = MVM_nativecall_make_int(tc, res_type, (unsigned short)ret);
                     break;
                 }
                 case MVM_NATIVECALL_ARG_UINT: {
