diff --git a/AK/HashFunctions.h b/AK/HashFunctions.h index caad086d76a..458bad796c1 100644 --- a/AK/HashFunctions.h +++ b/AK/HashFunctions.h @@ -58,3 +58,8 @@ inline unsigned ptr_hash(uintptr_t ptr) else return int_hash((u32)ptr); } + +inline unsigned ptr_hash(const void* ptr) +{ + return ptr_hash((uintptr_t)(ptr)); +}