summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/multiarray/scalartypes.c.src8
-rw-r--r--numpy/core/src/multiarray/scalartypes.h16
2 files changed, 12 insertions, 12 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src
index 5fecab5ac..bd12f58a0 100644
--- a/numpy/core/src/multiarray/scalartypes.c.src
+++ b/numpy/core/src/multiarray/scalartypes.c.src
@@ -3355,21 +3355,21 @@ NPY_NO_EXPORT PyTypeObject Py@NAME@ArrType_Type = {
* type numbers. Note that signed integers are mapped to INTNEG_SCALAR,
* which is different than what PyArray_ScalarKind returns.
*/
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_scalar_kinds_table[NPY_NTYPES];
/*
* This table maps a scalar kind (excluding NPY_NOSCALAR)
* to the smallest type number of that kind.
*/
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_smallest_type_of_kind_table[NPY_NSCALARKINDS];
/*
* This table gives the type of the same kind, but next in the sequence
* of sizes.
*/
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_next_larger_type_table[NPY_NTYPES];
/*
@@ -3383,7 +3383,7 @@ _npy_can_cast_safely_table[NPY_NTYPES][NPY_NTYPES];
* This table gives the smallest-size and smallest-kind type to which
* the input types may be safely cast, according to _npy_can_cast_safely.
*/
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_type_promotion_table[NPY_NTYPES][NPY_NTYPES];
#endif
diff --git a/numpy/core/src/multiarray/scalartypes.h b/numpy/core/src/multiarray/scalartypes.h
index 53850947a..7397a97e0 100644
--- a/numpy/core/src/multiarray/scalartypes.h
+++ b/numpy/core/src/multiarray/scalartypes.h
@@ -5,24 +5,24 @@
#ifdef NPY_ENABLE_SEPARATE_COMPILATION
extern NPY_NO_EXPORT unsigned char
_npy_can_cast_safely_table[NPY_NTYPES][NPY_NTYPES];
-extern NPY_NO_EXPORT char
+extern NPY_NO_EXPORT signed char
_npy_scalar_kinds_table[NPY_NTYPES];
-extern NPY_NO_EXPORT char
+extern NPY_NO_EXPORT signed char
_npy_type_promotion_table[NPY_NTYPES][NPY_NTYPES];
-extern NPY_NO_EXPORT char
+extern NPY_NO_EXPORT signed char
_npy_smallest_type_of_kind_table[NPY_NSCALARKINDS];
-extern NPY_NO_EXPORT char
+extern NPY_NO_EXPORT signed char
_npy_next_larger_type_table[NPY_NTYPES];
#else
NPY_NO_EXPORT unsigned char
_npy_can_cast_safely_table[NPY_NTYPES][NPY_NTYPES];
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_scalar_kinds_table[NPY_NTYPES];
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_type_promotion_table[NPY_NTYPES][NPY_NTYPES];
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_smallest_type_of_kind_table[NPY_NSCALARKINDS];
-NPY_NO_EXPORT char
+NPY_NO_EXPORT signed char
_npy_next_larger_type_table[NPY_NTYPES];
#endif