summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-07 20:04:06 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-07 20:04:06 +0000
commit46cb8b16d2ce0d0fb115910ffb3d225f82119990 (patch)
tree946e4d6cc02615b6a806b9fdf6fe2ba7fdf55f0d /numpy/core/src
parentd896e9ee78d865474ab85c64a648c05834225966 (diff)
downloadnumpy-46cb8b16d2ce0d0fb115910ffb3d225f82119990.tar.gz
Fix-up uses of Bool as return type in C-API
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/arrayobject.c6
-rw-r--r--numpy/core/src/multiarraymodule.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 19febf726..09216039b 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4661,7 +4661,7 @@ PyArray_UpdateFlags(PyArrayObject *ret, int flagmask)
*/
/*OBJECT_API*/
-static Bool
+static unsigned char
PyArray_CheckStrides(int elsize, int nd, intp numbytes, intp offset,
intp *dims, intp *newstrides)
{
@@ -7974,7 +7974,7 @@ PyArray_CanCastSafely(int fromtype, int totype)
/* leaves reference count alone --- cannot be NULL*/
/*OBJECT_API*/
-static Bool
+static unsigned char
PyArray_CanCastTo(PyArray_Descr *from, PyArray_Descr *to)
{
int fromtype=from->type_num;
@@ -8008,7 +8008,7 @@ PyArray_CanCastTo(PyArray_Descr *from, PyArray_Descr *to)
/*OBJECT_API
See if array scalars can be cast.
*/
-static Bool
+static unsigned char
PyArray_CanCastScalar(PyTypeObject *from, PyTypeObject *to)
{
int fromtype;
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 17f3bcff9..08c065268 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -4466,7 +4466,7 @@ _equivalent_fields(PyObject *field1, PyObject *field2) {
*/
/*MULTIARRAY_API*/
-static Bool
+static unsigned char
PyArray_EquivTypes(PyArray_Descr *typ1, PyArray_Descr *typ2)
{
register int typenum1=typ1->type_num;
@@ -4489,7 +4489,7 @@ PyArray_EquivTypes(PyArray_Descr *typ1, PyArray_Descr *typ2)
}
/*MULTIARRAY_API*/
-static Bool
+static unsigned char
PyArray_EquivTypenums(int typenum1, int typenum2)
{
PyArray_Descr *d1, *d2;