Changeset bb4af3a for python/ext/aubioproxy.c
- Timestamp:
- May 12, 2016, 1:27:42 AM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 911c22f
- Parents:
- 770f7b4
- git-author:
- Paul Brossier <piem@piem.org> (05/11/16 14:37:49)
- git-committer:
- Paul Brossier <piem@piem.org> (05/12/16 01:27:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/aubioproxy.c
r770f7b4 rbb4af3a 47 47 } 48 48 49 longlength = PyArray_SIZE ((PyArrayObject *)input);49 npy_intp length = PyArray_SIZE ((PyArrayObject *)input); 50 50 if (length <= 0) { 51 51 PyErr_SetString (PyExc_ValueError, "input array size should be greater than 0"); … … 121 121 122 122 // no need to really allocate fvec, just its struct member 123 longlength = PyArray_DIM ((PyArrayObject *)input, 1);123 npy_intp length = PyArray_DIM ((PyArrayObject *)input, 1); 124 124 if (length <= 0) { 125 125 PyErr_SetString (PyExc_ValueError, "input array dimension 1 should be greater than 0"); 126 126 return 0; 127 127 } 128 longheight = PyArray_DIM ((PyArrayObject *)input, 0);128 npy_intp height = PyArray_DIM ((PyArrayObject *)input, 0); 129 129 if (height <= 0) { 130 130 PyErr_SetString (PyExc_ValueError, "input array dimension 0 should be greater than 0");
Note: See TracChangeset
for help on using the changeset viewer.