diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-19 00:11:20 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-19 00:11:20 (GMT) |
commit | 029273fc903bcbdd689132f153d53004a8aee0b2 (patch) | |
tree | 0baf0eb95dba16ec403cf36ba48fa4b9ed77bafb /Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c | |
parent | a846f5ace80977f922e8295441afc668910fc894 (diff) | |
download | cpython-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/cls_20byte1.c')
-rw-r--r-- | Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c b/Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c index 50bcbbf..6562727 100644 --- a/Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c +++ b/Modules/_ctypes/libffi/testsuite/libffi.call/cls_20byte1.c @@ -52,15 +52,15 @@ int main (void) ffi_type cls_struct_type; ffi_type* dbl_arg_types[3]; + struct cls_struct_20byte g_dbl = { 1, 2.0, 3.0 }; + struct cls_struct_20byte f_dbl = { 4, 5.0, 7.0 }; + struct cls_struct_20byte res_dbl; + cls_struct_type.size = 0; cls_struct_type.alignment = 0; cls_struct_type.type = FFI_TYPE_STRUCT; cls_struct_type.elements = cls_struct_fields; - struct cls_struct_20byte g_dbl = { 1, 2.0, 3.0 }; - struct cls_struct_20byte f_dbl = { 4, 5.0, 7.0 }; - struct cls_struct_20byte res_dbl; - cls_struct_fields[0] = &ffi_type_sint; cls_struct_fields[1] = &ffi_type_double; cls_struct_fields[2] = &ffi_type_double; |