diff --git a/libNeonDomain/include/Neon/domain/tools/SpaceCurves.h b/libNeonDomain/include/Neon/domain/tools/SpaceCurves.h index 835fa066..add3f51e 100644 --- a/libNeonDomain/include/Neon/domain/tools/SpaceCurves.h +++ b/libNeonDomain/include/Neon/domain/tools/SpaceCurves.h @@ -321,7 +321,7 @@ class Encoder -> uint64_t { uint64_t mortonEncoded = mortonEncode(dim, idx); - uint64_t bits = std::ceil(std::log2(dim.newType().rMax())); + uint64_t bits = uint64_t(std::ceil(std::log2(dim.newType().rMax()))); return mortonToHilbert3D(mortonEncoded, bits); }