summaryrefslogtreecommitdiff
path: root/deimos/core/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'deimos/core/hash.h')
-rw-r--r--deimos/core/hash.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/deimos/core/hash.h b/deimos/core/hash.h
index 6ad30b0..e6e9cc8 100644
--- a/deimos/core/hash.h
+++ b/deimos/core/hash.h
@@ -5,7 +5,7 @@
namespace deimos
{
-constexpr uint64 MurmurHash3_GetBlock64(const byte* key, uint64 block)
+constexpr uint64 MurmurHash3_GetBlock64(const char* key, uint64 block)
{
// NOLINTBEGIN
key += block * 8;
@@ -41,7 +41,7 @@ constexpr uint64 MurmurHash3_Fmix64(uint64 k)
return k;
}
-constexpr uint128 MurmurHash3_x64_128(const byte* key, uint64 len)
+constexpr uint128 MurmurHash3_x64_128(const char* key, uint64 len)
{
if consteval { return { 12, 12 }; }
@@ -72,7 +72,7 @@ constexpr uint128 MurmurHash3_x64_128(const byte* key, uint64 len)
//----------
// tail
- const byte* tail = key + nblocks * 16;
+ const char* tail = key + nblocks * 16;
uint64 k1 = 0;
uint64 k2 = 0;
@@ -119,7 +119,7 @@ constexpr uint128 MurmurHash3_x64_128(const byte* key, uint64 len)
constexpr uint128 MurmurHash3_x64_128(gsl::czstring str)
{
- return MurmurHash3_x64_128(BitCast<const byte*>(str), __builtin_strlen(str));
+ return MurmurHash3_x64_128(str, __builtin_strlen(str));
}
} // namespace deimos