Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcf8270

Browse files
committed
BUG: enforce signed char in extint128
Whether a "char" is signed or unsigned is left undefined by the C standard. Some platforms such as armv7l actually seem to have an "unsigned" C char. Enforce a signed char where relevant. (fixes test_extint128 and test_mem_overlap on Raspberry Pi 2)
1 parent 1bd6c31 commit bcf8270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/private/npy_extint128.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
typedef struct {
6-
char sign;
6+
signed char sign;
77
npy_uint64 lo, hi;
88
} npy_extint128_t;
99

0 commit comments

Comments
 (0)