From 8c6b83766dc3f725c8039a67f2a49a6a2bb31fa8 Mon Sep 17 00:00:00 2001 From: Hugo MacDermott-Opeskin Date: Fri, 22 Mar 2024 03:45:01 +1100 Subject: [PATCH] Fix int->uint64_t casting (#17) * fix int->uint64_t casting * fix empty line --- molbloom/bloom.pyx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/molbloom/bloom.pyx b/molbloom/bloom.pyx index 548c18a..66364b4 100644 --- a/molbloom/bloom.pyx +++ b/molbloom/bloom.pyx @@ -1,5 +1,6 @@ # distutils: include_dirs = molbloom +from libc cimport stdint from . cimport cbloom @@ -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)