aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-03-23 16:35:41 +0000
committergingerBill <bill@gingerbill.org>2018-03-23 16:35:41 +0000
commit2e1e1e6034152fa83a05b7fb47e75eefe758ca62 (patch)
treee178a798c89f9a0ef012dee31a64da8a3827c232 /src/map.cpp
parent991479fbf921ab04b921bbb8163e5522f78feb3c (diff)
Type caching
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index abc42231f..aa4152696 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -22,7 +22,7 @@ enum HashKeyKind {
struct PtrAndId {
void *ptr;
- u32 id;
+ u64 id;
};
struct HashKey {
@@ -58,7 +58,7 @@ gb_inline HashKey hash_pointer(void *ptr) {
h.ptr = ptr;
return h;
}
-gb_inline HashKey hash_ptr_and_id(void *ptr, u32 id) {
+gb_inline HashKey hash_ptr_and_id(void *ptr, u64 id) {
HashKey h = {HashKey_PtrAndId};
h.key = cast(u64)cast(uintptr)ptr;
h.ptr_and_id.ptr = ptr;