-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
in pybuffer.cpp, the PY_NUMPY_BUFFER_FORMAT is defined only if PY_NUMPY is already defined:
Lines 31 to 37 in 35138a0
| # if defined(PY_NUMPY) | |
| # include <numpy/arrayobject.h> | |
| # if _FLEXT_NEED_SAMPLE_CONV | |
| # define PY_NUMPY_BUFFER_FORMAT "f" | |
| # else | |
| # define PY_NUMPY_BUFFER_FORMAT "d" | |
| # endif |
but later on, it is used even if PY_NUMPY is not defined:
Line 261 in 35138a0
| view->format = (flags & PyBUF_FORMAT) ? (char *) PY_NUMPY_BUFFER_FORMAT : NULL; |
this obviously break the build if PY_NUMPY is not defined...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels