summaryrefslogtreecommitdiff
path: root/numpy/random/_common.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/_common.pyx')
-rw-r--r--numpy/random/_common.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx
index 19fb34d4d..719647c3e 100644
--- a/numpy/random/_common.pyx
+++ b/numpy/random/_common.pyx
@@ -219,8 +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
- cdef ndim, i
+ cdef np.npy_intp *dims
+ cdef np.npy_intp ndim, i
cdef bint error
dims = np.PyArray_DIMS(output)
ndim = np.PyArray_NDIM(output)