mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
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:
parent
c01c7b800d
commit
f678729f89
3 changed files with 168 additions and 152 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue