diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-06-08 07:26:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 07:26:48 +0300 |
commit | d2e68a756705b23f6741d60b0168f7cddc28d4d9 (patch) | |
tree | 4fd75c00f2a81d85e6c3971a883b391a4f83fc19 | |
parent | 9e2d66a110090ee7416f4686593fdf9142ce6cbc (diff) | |
parent | 7d9866415e460959bf9b6c2cd8fd76911b4d23fe (diff) | |
download | numpy-d2e68a756705b23f6741d60b0168f7cddc28d4d9.tar.gz |
Merge pull request #16529 from charris/fix-cython-bug
BUG: Fix cython warning in random/_common.pyx.
-rw-r--r-- | numpy/random/_common.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx index fd5f8addc..6d77aed03 100644 --- a/numpy/random/_common.pyx +++ b/numpy/random/_common.pyx @@ -219,7 +219,8 @@ cdef np.ndarray int_to_array(object value, object name, object bits, object uint cdef validate_output_shape(iter_shape, np.ndarray output): - cdef np.npy_intp *shape, ndim, i + cdef np.npy_intp *shape + cdef ndim, i cdef bint error dims = np.PyArray_DIMS(output) ndim = np.PyArray_NDIM(output) |