diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-18 17:11:20 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-18 17:11:20 -0700 |
commit | 886edc68f41f74b07fb0e3a72d00ef979d8ea623 (patch) | |
tree | 05c30cd51c5b77445b07b9c6bf14009c2053f4ce /Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c | |
parent | 5a43c024aa5d5ad981bf71362e26c0080b4a2e6f (diff) | |
download | cpython-886edc68f41f74b07fb0e3a72d00ef979d8ea623.tar.gz |
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_struct4.c')
-rw-r--r-- | Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c b/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c index 98e491e65c..2ffb4d65a0 100644 --- a/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c +++ b/Modules/_ctypes/libffi/testsuite/libffi.call/nested_struct4.c @@ -58,6 +58,11 @@ int main (void) ffi_type cls_struct_type, cls_struct_type1; ffi_type* dbl_arg_types[3]; + struct A e_dbl = { 1.0, 7}; + struct B f_dbl = {{12.0 , 127}, 99}; + + struct B res_dbl; + cls_struct_type.size = 0; cls_struct_type.alignment = 0; cls_struct_type.type = FFI_TYPE_STRUCT; @@ -68,11 +73,6 @@ int main (void) cls_struct_type1.type = FFI_TYPE_STRUCT; cls_struct_type1.elements = cls_struct_fields1; - struct A e_dbl = { 1.0, 7}; - struct B f_dbl = {{12.0 , 127}, 99}; - - struct B res_dbl; - cls_struct_fields[0] = &ffi_type_double; cls_struct_fields[1] = &ffi_type_uchar; cls_struct_fields[2] = NULL; |