diff --git a/parallel_hashmap/phmap_base.h b/parallel_hashmap/phmap_base.h index d90d236..09d4854 100644 --- a/parallel_hashmap/phmap_base.h +++ b/parallel_hashmap/phmap_base.h @@ -4377,14 +4377,14 @@ namespace memory_internal { // ---------------------------------------------------------------------------- template struct OffsetOf { - static constexpr size_t kFirst = (size_t)-1; - static constexpr size_t kSecond = (size_t)-1; + static constexpr size_t kFirst = static_cast(-1); + static constexpr size_t kSecond = static_cast(-1); }; template struct OffsetOf::type> { - static constexpr size_t kFirst = offsetof(Pair, first); + static constexpr size_t kFirst = offsetof(Pair, first); static constexpr size_t kSecond = offsetof(Pair, second); };