mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Provide a ptr_hash(const void*) overload
This commit is contained in:
parent
61340c12d6
commit
00e744c263
Notes:
sideshowbarker
2024-07-19 09:04:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/00e744c2634
1 changed files with 5 additions and 0 deletions
|
@ -58,3 +58,8 @@ inline unsigned ptr_hash(uintptr_t ptr)
|
||||||
else
|
else
|
||||||
return int_hash((u32)ptr);
|
return int_hash((u32)ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline unsigned ptr_hash(const void* ptr)
|
||||||
|
{
|
||||||
|
return ptr_hash((uintptr_t)(ptr));
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue