summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2021-06-24 09:37:36 +0100
committerKevin Sheppard <kevin.k.sheppard@gmail.com>2021-06-24 09:37:36 +0100
commitac4e1fcdfd15d710310b4671199917203f8aa0de (patch)
tree14433b9922d9bc4db2408de17427b85db97e2c77 /numpy
parenta79a913efd9bd7b7d8f8fc8619768dd2b30067f7 (diff)
downloadnumpy-ac4e1fcdfd15d710310b4671199917203f8aa0de.tar.gz
BUG: Correct Cython declaration
Correct return type from double to void closes #19312
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/_common.pxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/_common.pxd b/numpy/random/_common.pxd
index 4f404b7a1..9f2e8c3ca 100644
--- a/numpy/random/_common.pxd
+++ b/numpy/random/_common.pxd
@@ -39,7 +39,7 @@ cdef extern from "include/aligned_malloc.h":
cdef void *PyArray_calloc_aligned(size_t n, size_t s)
cdef void PyArray_free_aligned(void *p)
-ctypedef double (*random_double_fill)(bitgen_t *state, np.npy_intp count, double* out) nogil
+ctypedef void (*random_double_fill)(bitgen_t *state, np.npy_intp count, double* out) nogil
ctypedef double (*random_double_0)(void *state) nogil
ctypedef double (*random_double_1)(void *state, double a) nogil
ctypedef double (*random_double_2)(void *state, double a, double b) nogil