Skip to content

Commit

Permalink
Fix bug in slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Jan 2, 2024
1 parent 2e7553f commit 2dd7acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ end
T = derive_type(Kmer{A, K})
N = nsize(T)
# After the shift, the first coding element may be unused
new_data = if N > length(data)
new_data = if N < length(data)
tail(data)
else
data
end
T(unsafe, new_data)
T(unsafe, (first(new_data) & get_mask(T), tail(new_data)...))
end

# Same as above: This needs to be able to inline if the indices are known statically
Expand Down

0 comments on commit 2dd7acb

Please sign in to comment.