Skip to content

Commit

Permalink
Fix a warning in Morton codes
Browse files Browse the repository at this point in the history
"integer conversion resulted in a change of sign" for (1 << 31).
  • Loading branch information
aprokop committed Feb 22, 2022
1 parent 84491f2 commit 22c53c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/details/ArborX_DetailsMortonCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ unsigned long long morton64(float x, float y)
{
// The interval [0,1] is subdivided into 2,147,483,648 bins (in each
// direction).
constexpr unsigned N = (1 << 31);
constexpr unsigned N = (1u << 31);

using KokkosExt::max;
using KokkosExt::min;
Expand Down

0 comments on commit 22c53c4

Please sign in to comment.