From d3f0b986bf1a22ab8e227b7fc6681efbe313977a Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Sat, 9 Dec 2023 08:59:03 -0500 Subject: [PATCH] tentative fix for #224. --- parallel_hashmap/phmap_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); };