8000 Merge pull request #12131 from mattip/fix-macro · shoyer/numpy@aae4172 · GitHub
[go: up one dir, main page]

Skip to content

Commit aae4172

Browse files
authored
Merge pull request numpy#12131 from mattip/fix-macro
BUG: fix PyDataType_ISBOOL
2 parents 072c90e + f92c57e commit aae4172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/include/numpy/ndarraytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ PyArray_CLEARFLAGS(PyArrayObject *arr, int flags)
16701670
#define PyTypeNum_ISOBJECT(type) ((type) == NPY_OBJECT)
16711671

16721672

1673-
#define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(_PyADt(obj))
1673+
#define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(((PyArray_Descr*)(obj))->type_num)
16741674
#define PyDataType_ISUNSIGNED(obj) PyTypeNum_ISUNSIGNED(((PyArray_Descr*)(obj))->type_num)
16751675
#define PyDataType_ISSIGNED(obj) PyTypeNum_ISSIGNED(((PyArray_Descr*)(obj))->type_num)
16761676
#define PyDataType_ISINTEGER(obj) PyTypeNum_ISINTEGER(((PyArray_Descr*)(obj))->type_num )

0 commit comments

Comments
 (0)
0