From: Icecream95 Date: Sun, 23 Oct 2022 15:08:10 +0000 (+1300) Subject: Fix types of temporary variables in aarch64 extend_integer_type (#745) X-Git-Tag: upstream/3.4.7~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af0f14cd6d932bd1c2f7c39c01e2df3b0ad19ea9;p=platform%2Fupstream%2Flibffi.git Fix types of temporary variables in aarch64 extend_integer_type (#745) Fixes truncated values in weston-info output. --- diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index dc6338b..6544ac0 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -342,20 +342,20 @@ extend_integer_type (void *source, int type) } case FFI_TYPE_SINT16: { - SINT8 s16; + SINT16 s16; memcpy (&s16, source, sizeof (s16)); return s16; } case FFI_TYPE_UINT32: { - UINT8 u32; + UINT32 u32; memcpy (&u32, source, sizeof (u32)); return u32; } case FFI_TYPE_INT: case FFI_TYPE_SINT32: { - SINT8 s32; + SINT32 s32; memcpy (&s32, source, sizeof (s32)); return s32; }