Opened 6 years ago

Closed 5 years ago

#115 closed defect (fixed)

Buffer typestring bug with external struct fields

Reported by: dagss Owned by: dagss
Priority: minor Milestone: 0.11.2
Component: Code Generation 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.

Change History (4)

comment:1 Changed 6 years ago by dagss

  • Priority changed from major to minor

comment:2 Changed 6 years ago by dagss

  • Milestone changed from 0.11 to 0.11.1

comment:3 Changed 6 years ago by dagss

  • Milestone changed from 0.11.1 to 0.11.2

comment:4 Changed 5 years ago by dagss

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.