mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
AK: Replace C-style casts
This commit is contained in:
parent
7d6908d9a5
commit
067d0689c5
14 changed files with 49 additions and 49 deletions
|
@ -14,7 +14,7 @@ constexpr u32 string_hash(char const* characters, size_t length, u32 seed = 0)
|
|||
{
|
||||
u32 hash = seed;
|
||||
for (size_t i = 0; i < length; ++i) {
|
||||
hash += (u32)characters[i];
|
||||
hash += static_cast<u32>(characters[i]);
|
||||
hash += (hash << 10);
|
||||
hash ^= (hash >> 6);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue