Skip to content

Commit

Permalink
Desul atomics: fix bug max uint64_t value
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Mar 8, 2023
1 parent 0b2a956 commit 4f18b19
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 uint32_t value = -1;
};
template <>
struct numeric_limits_max<uint64_t> {
static constexpr uint64_t value = 0xfffffffflu;
static constexpr uint64_t value = -1;
};

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

0 comments on commit 4f18b19

Please sign in to comment.