Ticket #115 (new defect)

Opened 2 months ago

Buffer typestring bug with external struct fields

Reported by: dagss Assigned to: dagss
Priority: major Milestone: 0.11
Component: Code Generation Version:
Keywords: numerics buffers Cc:

Description

This doesn't work:

cdef extern ... :
    ctypedef struct npy_clongdouble:
        float real
        float imag

...if npy_clongdouble is defined to have "long double" as the types of the fields in the header file. Cython should not make assumptions about the field sizes in this case.