diff options
Diffstat (limited to 'AK/HashFunctions.h')
-rw-r--r-- | AK/HashFunctions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/HashFunctions.h b/AK/HashFunctions.h index 458bad796c..ffa21a0190 100644 --- a/AK/HashFunctions.h +++ b/AK/HashFunctions.h @@ -51,7 +51,7 @@ inline unsigned u64_hash(u64 key) return pair_int_hash(first, last); } -inline unsigned ptr_hash(uintptr_t ptr) +inline unsigned ptr_hash(FlatPtr ptr) { if constexpr(sizeof(ptr) == 8) return u64_hash((u64)ptr); @@ -61,5 +61,5 @@ inline unsigned ptr_hash(uintptr_t ptr) inline unsigned ptr_hash(const void* ptr) { - return ptr_hash((uintptr_t)(ptr)); + return ptr_hash((FlatPtr)(ptr)); } |