Showing the changes to python/ext/py-cvec.c (1 of 6 files). Show all
Unified · Split
| @@ -93,7 +93,7 @@ PyObject * · 92 unmodified lines | |||
| 93 | PyAubio_CvecNormToArray (Py_cvec * self) | 93 | PyAubio_CvecNormToArray (Py_cvec * self) |
| 94 | { | 94 | { |
| 95 | npy_intp dims[] = { self->o->length, 1 }; | 95 | npy_intp dims[] = { self->o->length, 1 }; |
| 96 | return PyArray_SimpleNewFromData (1, dims, NPY_FLOAT, self->o->norm); | 96 | return PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, self->o->norm); |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | 99 | ||
| @@ -101,7 +101,7 @@ PyObject * · 1 unmodified line | |||
| 101 | PyAubio_CvecPhasToArray (Py_cvec * self) | 101 | PyAubio_CvecPhasToArray (Py_cvec * self) |
| 102 | { | 102 | { |
| 103 | npy_intp dims[] = { self->o->length, 1 }; | 103 | npy_intp dims[] = { self->o->length, 1 }; |
| 104 | return PyArray_SimpleNewFromData (1, dims, NPY_FLOAT, self->o->phas); | 104 | return PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, self->o->phas); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | PyObject * | 107 | PyObject * |