Skip to content

Commit

Permalink
Merge pull request #731 from marcelm/rhpvorderman-patch-1
Browse files Browse the repository at this point in the history
Update _kmer_finder.pyx to always use a 64-bit integer.
  • Loading branch information
marcelm authored Sep 25, 2023
2 parents fbb3786 + c6a5eb7 commit ddbe8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cutadapt/_kmer_finder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from cpython.mem cimport PyMem_Realloc, PyMem_Free
from libc.string cimport memcpy, memset, strlen

from cpython.unicode cimport PyUnicode_CheckExact, PyUnicode_GET_LENGTH
from libc.stdint cimport uint8_t
from libc.stdint cimport uint8_t, uint64_t

from ._match_tables import matches_lookup

Expand Down Expand Up @@ -46,7 +46,7 @@ is 33 bases for example).
# Dnaio conveniently ensures that all sequences are ASCII only.
DEF BITMASK_INDEX_SIZE = 128

ctypedef size_t bitmask_t
ctypedef uint64_t bitmask_t

DEF MAX_WORD_SIZE = 64 # "sizeof(bitmask_t) * 8" does not work for some reason
MAXIMUM_WORD_SIZE = MAX_WORD_SIZE
Expand Down

0 comments on commit ddbe8fd

Please sign in to comment.