Skip to content

Commit

Permalink
Fixed minor sign conversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlaine committed Aug 14, 2019
1 parent bdad6ab commit 768d45c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/src/seal/util/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ namespace seal
}
#endif
// Just return zero if bit_count is zero
return (bit_count == 0) ? T(0) :
reverse_bits(operand) >> (
sizeof(T) * static_cast<std::size_t>(bits_per_byte) - bit_count);
return (bit_count == 0) ? T(0) : reverse_bits(operand) >> (
sizeof(T) * static_cast<std::size_t>(bits_per_byte)
- static_cast<std::size_t>(bit_count));
}

inline void get_msb_index_generic(unsigned long *result, std::uint64_t value)
Expand Down

0 comments on commit 768d45c

Please sign in to comment.