Commit 37305c7
committed
gh-148573: correct allocation of complex types in the ctypes
Old code relying on implementation detail, that elements[1] for
the FFI_TYPE_COMPLEX was never read.
But this type actually shares same assumption as the FFI_TYPE_STRUCT:
the elements field is a NULL-terminated array of pointers to ffi_type
objects. So far for primitive types - only complex types have this
struct field as non-NULL (two element array).1 parent 820c5d8 commit 37305c7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
2385 | | - | |
| 2385 | + | |
| 2386 | + | |
2386 | 2387 | | |
2387 | 2388 | | |
2388 | 2389 | | |
| |||
0 commit comments