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; }