Skip to content

Commit

Permalink
Merge pull request #640 from aprokop/bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop authored Feb 23, 2022
2 parents 3631580 + 3f043de commit f8d122e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/details/ArborX_DetailsMortonCode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ KOKKOS_INLINE_FUNCTION
unsigned int morton32(float x, float y)
{
// The interval [0,1] is subdivided into 65,536 bins (in each direction).
constexpr unsigned N = (1 << 16);
constexpr unsigned N = (1u << 16);

using KokkosExt::max;
using KokkosExt::min;
Expand All @@ -95,7 +95,7 @@ KOKKOS_INLINE_FUNCTION
unsigned int morton32(float x, float y, float z)
{
// The interval [0,1] is subdivided into 1024 bins (in each direction).
constexpr unsigned N = (1 << 10);
constexpr unsigned N = (1u << 10);

using KokkosExt::max;
using KokkosExt::min;
Expand All @@ -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 All @@ -133,7 +133,7 @@ KOKKOS_INLINE_FUNCTION
unsigned long long morton64(float x, float y, float z)
{
// The interval [0,1] is subdivided into 2,097,152 bins (in each direction).
constexpr unsigned N = (1 << 21);
constexpr unsigned N = (1u << 21);

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

0 comments on commit f8d122e

Please sign in to comment.