Skip to content

Commit

Permalink
Fix int->uint64_t casting (#17)
Browse files Browse the repository at this point in the history
* fix int->uint64_t casting

* fix empty line
  • Loading branch information
hmacdope authored Mar 21, 2024
1 parent 9a172f9 commit 8c6b837
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions molbloom/bloom.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# distutils: include_dirs = molbloom

from libc cimport stdint
from . cimport cbloom


Expand Down Expand Up @@ -29,16 +30,16 @@ cdef class CustomFilter:
Parameters
----------
size : int
size : uint64_t
The size of the filter in bits.
n : int
n : uint64_t
The total number elements that will be in the filter (estimated).
name : str
The name of the filter.
'''
cdef cbloom.bloom_t * _c_bloom

def __cinit__(self, int size, int n, str name):
def __cinit__(self, stdint.uint64_t size, stdint.uint64_t n, str name):
tmp = name.encode('UTF-8')
cdef char * bname = tmp
self._c_bloom = cbloom.bloom_new(size, n, bname)
Expand Down

0 comments on commit 8c6b837

Please sign in to comment.