Skip to content

Commit 42b1fba

Browse files
committed
fix murmur3 on big-endian systems
1 parent c46377d commit 42b1fba

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Bug Fixes
1313
* Installation doesn't always fall back to no cython in Windows (PYTHON-763)
1414
* Avoid to replace a connection that is supposed to shutdown (PYTHON-772)
1515
* request_ids may not be returned to the pool (PYTHON-739)
16+
* Fix murmur3 on big-endian systems (PYTHON-653)
1617

1718
Other
1819
-----

cassandra/murmur3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def body_and_tail(data):
77
nblocks = l // 16
88
tail = l % 16
99
if nblocks:
10-
return struct.unpack_from('qq' * nblocks, data), struct.unpack_from('b' * tail, data, -tail), l
10+
return struct.unpack_from('<' + ('qq' * nblocks), data), struct.unpack_from('b' * tail, data, -tail), l
1111
else:
1212
return tuple(), struct.unpack_from('b' * tail, data, -tail), l
1313

0 commit comments

Comments
 (0)