Skip to content

Commit

Permalink
Desul atomics: fix bug in desul::Impl::numeric_limits_max<uint64_t>
Browse files Browse the repository at this point in the history
… value
  • Loading branch information
dalg24 committed Mar 29, 2023
1 parent 8c3d97e commit 3cbd2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpls/desul/include/desul/atomics/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ struct numeric_limits_max;

template <>
struct numeric_limits_max<uint32_t> {
static constexpr uint32_t value = 0xffffffffu;
static constexpr auto value = static_cast<uint32_t>(-1);
};
template <>
struct numeric_limits_max<uint64_t> {
static constexpr uint64_t value = 0xfffffffflu;
static constexpr auto value = static_cast<uint64_t>(-1);
};

constexpr bool atomic_always_lock_free(std::size_t size) {
Expand Down

0 comments on commit 3cbd2ec

Please sign in to comment.