Skip to content

Commit

Permalink
Change GetUnique() return type from char to init8_t
Browse files Browse the repository at this point in the history
`char` is unsigned on aarch64

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Apr 4, 2024
1 parent ad873bc commit 6bbf2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/kmer_index/extension_index/inout_mask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class InOutMask {
return unique[mask];
}

static constexpr char GetUnique(uint8_t mask) {
constexpr char next[] =
static constexpr int8_t GetUnique(uint8_t mask) {
constexpr int8_t next[] =
{ -1, 0, 1, -1, 2, -1, -1, -1,
3, -1, -1, -1, -1, -1, -1, -1 };
return next[mask];
Expand Down

0 comments on commit 6bbf2c5

Please sign in to comment.