Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit c17da06

Browse files
committed
simplified uint_to_hash
1 parent 4d04942 commit c17da06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arraymap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ char_get_end_p(char* p, Py_ssize_t dt_size) {
149149
static inline Py_hash_t
150150
uint_to_hash(npy_uint64 v) {
151151
Py_hash_t hash = (Py_hash_t)(v & INT64_MAX);
152-
if (v & 1ull << 63) {
152+
if (v >> 63) {
153153
hash = -hash;
154154
if (hash == -1) {
155155
return -2;

0 commit comments

Comments
 (0)