summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-14 07:36:06 -0400
committerAnthony Green <green@moxielogic.com>2022-09-14 07:36:06 -0400
commit19e8354ff9b608b5410451caef6a9773375de005 (patch)
tree09c6a9c711ca7d189469bbb47fa86931ec96645c /testsuite
parent4932f351579fb722e1e0b58a173b1571a6dfae79 (diff)
downloadlibffi-19e8354ff9b608b5410451caef6a9773375de005.tar.gz
Fix test case
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/libffi.call/bpo-38748.c9
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};