summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-19 00:11:20 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-19 00:11:20 (GMT)
commit029273fc903bcbdd689132f153d53004a8aee0b2 (patch)
tree0baf0eb95dba16ec403cf36ba48fa4b9ed77bafb /Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
parenta846f5ace80977f922e8295441afc668910fc894 (diff)
downloadcpython-029273fc903bcbdd689132f153d53004a8aee0b2.zip
cpython-029273fc903bcbdd689132f153d53004a8aee0b2.tar.gz
cpython-029273fc903bcbdd689132f153d53004a8aee0b2.tar.bz2
Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on some more recent platforms.
Diffstat (limited to 'Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c')
-rw-r--r--Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c b/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
index de1584c..69268cd 100644
--- a/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
+++ b/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct2.c
@@ -57,6 +57,11 @@ int main (void)
ffi_type cls_struct_type, cls_struct_type1;
ffi_type* dbl_arg_types[3];
+ struct A e_dbl = { 1, 7};
+ struct B f_dbl = {{12 , 127}, 99};
+
+ struct B res_dbl;
+
cls_struct_type.size = 0;
cls_struct_type.alignment = 0;
cls_struct_type.type = FFI_TYPE_STRUCT;
@@ -67,11 +72,6 @@ int main (void)
cls_struct_type1.type = FFI_TYPE_STRUCT;
cls_struct_type1.elements = cls_struct_fields1;
- struct A e_dbl = { 1, 7};
- struct B f_dbl = {{12 , 127}, 99};
-
- struct B res_dbl;
-
cls_struct_fields[0] = &ffi_type_ulong;
cls_struct_fields[1] = &ffi_type_uchar;
cls_struct_fields[2] = NULL;