diff options
author | Anthony Green <green@moxielogic.com> | 2022-09-14 07:36:06 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2022-09-14 07:36:06 -0400 |
commit | 19e8354ff9b608b5410451caef6a9773375de005 (patch) | |
tree | 09c6a9c711ca7d189469bbb47fa86931ec96645c /testsuite/libffi.call | |
parent | 4932f351579fb722e1e0b58a173b1571a6dfae79 (diff) | |
download | libffi-19e8354ff9b608b5410451caef6a9773375de005.tar.gz |
Fix test case
Diffstat (limited to 'testsuite/libffi.call')
-rw-r--r-- | testsuite/libffi.call/bpo-38748.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/libffi.call/bpo-38748.c b/testsuite/libffi.call/bpo-38748.c index 6104249..294bda0 100644 --- a/testsuite/libffi.call/bpo-38748.c +++ b/testsuite/libffi.call/bpo-38748.c @@ -7,10 +7,10 @@ #include "ffitest.h" #include "ffi_common.h" -static long ABI_ATTR align_arguments(UINT32 l1, - UINT64 l2) +static UINT32 ABI_ATTR align_arguments(UINT32 l1, + UINT64 l2) { - return l1 + l2; + return l1 + (UINT32) l2; } int main(void) @@ -20,7 +20,8 @@ int main(void) &ffi_type_uint32, &ffi_type_uint64 }; - UINT32 lr1, lr2, l1 = 1; + ffi_arg lr1, lr2; + UINT32 l1 = 1; UINT64 l2 = 2; void *values[2] = {&l1, &l2}; |