Skip to content

Commit 3f11ece

Browse files
committed
- fix
1 parent bc3ed22 commit 3f11ece

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/DataStructures.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ struct SpatialHasher
8787
{
8888
std::size_t operator()(HashKey const& k) const
8989
{
90-
return
91-
73856093 * k.k[0] ^
92-
19349663 * k.k[1] ^
93-
83492791 * k.k[2];
90+
return static_cast<size_t>(
91+
static_cast<int64_t>(73856093) * static_cast<int64_t>(k.k[0]) ^
92+
static_cast<int64_t>(19349663) * static_cast<int64_t>(k.k[1]) ^
93+
static_cast<int64_t>(83492791) * static_cast<int64_t>(k.k[2]));
9494
}
9595
};
9696

0 commit comments

Comments
 (0)