From 3c0d80179c0f2053fb2b892ee9af47200cb5d539 Mon Sep 17 00:00:00 2001
From: Steven Le Rouzic <steven.lerouzic@gmail.com>
Date: Fri, 29 Mar 2024 00:18:28 +0100
Subject: Separate the std-lite stuff

---
 deimos/core/hash.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'deimos/core/hash.h')

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
-- 
cgit