Skip to content

Commit b35224e

Browse files
authored
Es/minor3 (#21)
1 parent 000d501 commit b35224e

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

pip-freeze.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ipdb==0.13.9
88
ipython==7.30.1
99
jedi==0.18.1
1010
matplotlib-inline==0.1.3
11-
-e git+https://github.com/escherba/python-metrohash@ea83865358849218699802b44060296d89e2ab10#egg=metrohash
11+
-e git+https://github.com/escherba/python-metrohash@c5c37595134dcb929a5fa8fcaf3fb64d4d987ef4#egg=metrohash
1212
numpy==1.21.5
1313
packaging==21.3
1414
parso==0.8.3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def is_pure(self):
9999
),
100100
]
101101

102-
VERSION = "0.2.0.post0"
102+
VERSION = "0.2.0.post1"
103103
URL = "https://github.com/escherba/python-metrohash"
104104

105105

src/metrohash.cpp

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/metrohash.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Raises:
270270
PyBuffer_Release(&buf)
271271
else:
272272
raise _type_error("data", ["basestring", "buffer"], data)
273-
return 0x10000000000000000L * long(result.first) + long(result.second)
273+
return (long(result.first) << 64ULL) + long(result.second)
274274
275275
276276
cdef class MetroHash64(object):
@@ -461,4 +461,4 @@ Returns:
461461
cdef uint8 buf[16]
462462
self._m.Finalize(buf)
463463
cdef uint128 result = c_bytes2int128(buf)
464-
return 0x10000000000000000L * long(result.first) + long(result.second)
464+
return (long(result.first) << 64ULL) + long(result.second)

0 commit comments

Comments
 (0)