aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-03-02 18:48:52 +0000
committergingerBill <bill@gingerbill.org>2020-03-02 18:48:52 +0000
commit10cde925ca6da00d035d2ef669d30febe086171a (patch)
tree3ffa05132480a43cae2e23fe00f836bb6fc9b7e4 /src/map.cpp
parent56240240f6c040df5ecdd10f8050ce03040f8c87 (diff)
Add checks for pre-existing type declarations.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 2 insertions, 0 deletions
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;