Commit 5c3c489
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 8fc66ae commit 5c3c489
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
2370 | | - | |
| 2370 | + | |
| 2371 | + | |
2371 | 2372 | | |
2372 | 2373 | | |
2373 | 2374 | | |
| |||
0 commit comments