From 5e4c268b1a0ce981892b50a86c2ad23afb034a2f Mon Sep 17 00:00:00 2001 From: doyle Date: Tue, 28 Mar 2023 22:52:06 +1100 Subject: [PATCH] dsmap: Fix incorrect hash invocation --- dqn.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dqn.h b/dqn.h index d9bca10..68cf3ba 100644 --- a/dqn.h +++ b/dqn.h @@ -3626,11 +3626,10 @@ DQN_API Dqn_DSMapKey Dqn_DSMap_KeyU64(Dqn_DSMap const *map, uint64_t u64) Dqn_DSMapKey result = {}; result.type = Dqn_DSMapKeyType_U64; result.payload.u64 = u64; - result.hash = Dqn_DSMap_Hash(map, &result); + result.hash = Dqn_DSMap_Hash(map, result); return result; } - template DQN_API Dqn_DSMapKey Dqn_DSMap_KeyString8(Dqn_DSMap const *map, Dqn_String8 string) { @@ -3639,7 +3638,7 @@ DQN_API Dqn_DSMapKey Dqn_DSMap_KeyString8(Dqn_DSMap const *map, Dqn_String8 s result.type = Dqn_DSMapKeyType_Buffer; result.payload.buffer.data = string.data; result.payload.buffer.size = DQN_CAST(uint32_t)string.size; - result.hash = Dqn_DSMap_Hash(map, &result); + result.hash = Dqn_DSMap_Hash(map, result); return result; }