We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3ed22 commit 3f11eceCopy full SHA for 3f11ece
include/DataStructures.h
@@ -87,10 +87,10 @@ struct SpatialHasher
87
{
88
std::size_t operator()(HashKey const& k) const
89
90
- return
91
- 73856093 * k.k[0] ^
92
- 19349663 * k.k[1] ^
93
- 83492791 * k.k[2];
+ return static_cast<size_t>(
+ static_cast<int64_t>(73856093) * static_cast<int64_t>(k.k[0]) ^
+ static_cast<int64_t>(19349663) * static_cast<int64_t>(k.k[1]) ^
+ static_cast<int64_t>(83492791) * static_cast<int64_t>(k.k[2]));
94
}
95
};
96
0 commit comments