Skip to content

Commit

Permalink
Merge pull request #6001 from dalg24/desul_atomics_warning_numeric_li…
Browse files Browse the repository at this point in the history
…mits_max

Desul atomics: Fix warning with NVC++
  • Loading branch information
dalg24 authored Mar 24, 2023
2 parents b0cc5a0 + 19a43a6 commit 86b70c1
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 = -1;
static constexpr auto value = static_cast<uint32_t>(-1);
};
template <>
struct numeric_limits_max<uint64_t> {
static constexpr uint64_t value = -1;
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 86b70c1

Please sign in to comment.