Skip to content

Commit

Permalink
Address clang bug
Browse files Browse the repository at this point in the history
or, its extreme pedanticism
  • Loading branch information
jamshed committed Sep 9, 2022
1 parent f2aa2ad commit abe687a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Kmer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ inline Kmer<k>::Kmer(const char* const label)
kmer_data[data_idx] = Kmer_Utility::encode<32>((label + k) - (data_idx << 5) - 32);

// Get the partially packed (highest index) word's binary representation.
if constexpr(k & 31)
if constexpr((k & 31) > 0)
kmer_data[NUM_INTS - 1] = Kmer_Utility::encode<k & 31>(label);
}

Expand Down

0 comments on commit abe687a

Please sign in to comment.