8000 Merge pull request #3678 from charris/fix-wrong-variable-type · juliantaylor/numpy@0a91ade · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a91ade

Browse files
committed
Merge pull request numpy#3678 from charris/fix-wrong-variable-type
BUG: PyArray_PyIntAsIntp had variable size check wrong way around.
2 parents 7ae0206 + 3c8eb4e commit 0a91ade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/src/multiarray/conversion_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ NPY_NO_EXPORT npy_intp
726726
PyArray_PyIntAsIntp(PyObject *o)
727727
{
728728
#if (NPY_SIZEOF_LONG < NPY_SIZEOF_INTP)
729-
npy_long long_value = -1;
729+
long long long_value = -1;
730730
#else
731-
npy_longlong long_value = -1;
731+
long long_value = -1;
732732
#endif
733733
PyObject *obj, *err;
734734
static char *msg = "an integer is required";

0 commit comments

Comments
 (0)
0