From 2e1e1e6034152fa83a05b7fb47e75eefe758ca62 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 23 Mar 2018 16:35:41 +0000 Subject: Type caching --- src/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map.cpp') 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; -- cgit v1.2.3