diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2020-06-07 19:54:05 -0600 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2020-06-07 19:54:05 -0600 |
| commit | 7d9866415e460959bf9b6c2cd8fd76911b4d23fe (patch) | |
| tree | 4fd75c00f2a81d85e6c3971a883b391a4f83fc19 /numpy/random | |
| parent | 9e2d66a110090ee7416f4686593fdf9142ce6cbc (diff) | |
| download | numpy-7d9866415e460959bf9b6c2cd8fd76911b4d23fe.tar.gz | |
BUG: Fix cython warning in random/_common.pyx.
Fix for #16508. Cython wants every pointer declaration to be on a
separate line.
Diffstat (limited to 'numpy/random')
| -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) |
