From abe687a5747eb4b779f57cbcb10098ba317fac98 Mon Sep 17 00:00:00 2001 From: jamshed Date: Fri, 9 Sep 2022 16:14:28 -0400 Subject: [PATCH] Address clang bug or, its extreme pedanticism --- include/Kmer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Kmer.hpp b/include/Kmer.hpp index 6f58a613..58d4bfe3 100644 --- a/include/Kmer.hpp +++ b/include/Kmer.hpp @@ -289,7 +289,7 @@ inline Kmer::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(label); }