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

Commit be9d545

Browse files
committed
refinements
1 parent c17da06 commit be9d545

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
@@ -145,7 +145,7 @@ char_get_end_p(char* p, Py_ssize_t dt_size) {
145145
}
146146

147147

148-
// This masks the input with INT64_MAX, which removes the MSB; we then cast to an int64; the range is between 0 and INT64_MAX. We then use the MSB of the original value; if set, we negate the number, producing negative values for the upper half of the uint64 range. Note that we only need to check for hash -1 in this branch.
148+
// This masks the input with INT64_MAX, which removes the MSB; we then cast to an int64; the range is now between 0 and INT64_MAX. We then use the MSB of the original value; if set, we negate the number, producing negative values for the upper half of the uint64 range. Note that we only need to check for hash -1 in this branch.
149149
static inline Py_hash_t
150150
uint_to_hash(npy_uint64 v) {
151151
Py_hash_t hash = (Py_hash_t)(v & INT64_MAX);

0 commit comments

Comments
 (0)