From 10cde925ca6da00d035d2ef669d30febe086171a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 2 Mar 2020 18:48:52 +0000 Subject: Add checks for pre-existing type declarations. --- src/map.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index aa4152696..03ac924fe 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -55,12 +55,14 @@ gb_inline HashKey hash_string(String s) { gb_inline HashKey hash_pointer(void *ptr) { HashKey h = {HashKey_Ptr}; h.key = cast(u64)cast(uintptr)ptr; + // h.key = gb_fnv64a(&ptr, gb_size_of(void *)); h.ptr = ptr; return h; } gb_inline HashKey hash_ptr_and_id(void *ptr, u64 id) { HashKey h = {HashKey_PtrAndId}; h.key = cast(u64)cast(uintptr)ptr; + // h.key = gb_fnv64a(&ptr, gb_size_of(void *)); h.ptr_and_id.ptr = ptr; h.ptr_and_id.id = id; return h; -- cgit v1.2.3