Skip to content

Commit

Permalink
Fix warning with NVC++
Browse files Browse the repository at this point in the history
```
"<desul>/include/desul/atomics/Common.hpp", line 86: warning: integer conversion resulted in a change of sign [integer_sign_change]
    static constexpr uint32_t value = -1;
                                      ^
```
  • Loading branch information
dalg24 committed Mar 20, 2023
1 parent 65aa95e commit 19a43a6
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 19a43a6

Please sign in to comment.