Clean up hashfuncs.h: Move long functions to hashfuncs.cpp and replace static with inline. Remove hash_make_uint64_t and hash_make_uint32_t.

This commit is contained in:
Lukas Tenbrink 2025-10-07 13:43:22 +02:00
parent c01c7b800d
commit f678729f89
3 changed files with 168 additions and 152 deletions

View file

@ -2941,7 +2941,7 @@ uint32_t Variant::recursive_hash(int recursion_count) const {
return hash_one_uint64(reinterpret_cast<const ::RID *>(_data._mem)->get_id());
} break;
case OBJECT: {
return hash_one_uint64(hash_make_uint64_t(_get_obj().obj));
return hash_one_uint64(reinterpret_cast<uint64_t>(_get_obj().obj));
} break;
case STRING_NAME: {
return reinterpret_cast<const StringName *>(_data._mem)->hash();