Skip to content

Commit 9887c9c

Browse files
authored
Merge pull request numpy#25118 from charris/backport-25051
MAINT: Make bitfield integers unsigned
2 parents 249b5be + 2359aec commit 9887c9c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

numpy/core/src/_simd/_simd_inc.h.src

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,19 @@ typedef struct
105105
// type name compatible with python style
106106
const char *pyname;
107107
// returns '1' if the type represent a unsigned integer
108-
int is_unsigned:1;
108+
unsigned int is_unsigned:1;
109109
// returns '1' if the type represent a signed integer
110-
int is_signed:1;
110+
unsigned int is_signed:1;
111111
// returns '1' if the type represent a single or double precision
112-
int is_float:1;
112+
unsigned int is_float:1;
113113
// returns '1' if the type represent a boolean
114-
int is_bool:1;
114+
unsigned int is_bool:1;
115115
// returns '1' if the type represent a sequence
116-
int is_sequence:1;
116+
unsigned int is_sequence:1;
117117
// returns '1' if the type represent a scalar
118-
int is_scalar:1;
118+
unsigned int is_scalar:1;
119119
// returns '1' if the type represent a vector
120-
int is_vector:1;
120+
unsigned int is_vector:1;
121121
// returns the len of multi-vector if the type represent x2 or x3 vector
122122
// otherwise returns 0, e.g. returns 2 if data type is simd_data_vu8x2
123123
int is_vectorx;

0 commit comments

Comments
 (0)