diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-14 10:29:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-14 10:30:16 +0200 |
commit | e900975255452b70f7474b78050b9c6342912cfe (patch) | |
tree | e92e92f804a9cc1c363dad61408e8880741ee961 /src/world.cpp | |
parent | c077f0f904cce505e15543b855b4330ca547b53d (diff) |
remove some useless casts
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp index fd6e4cbb..29c9378e 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -6,7 +6,7 @@ using namespace floormat; -size_t world::object_id_hasher::operator()(object_id id) const noexcept { return (size_t)int_hash(id); } +size_t world::object_id_hasher::operator()(object_id id) const noexcept { return int_hash(id); } size_t world::chunk_coords_hasher::operator()(const chunk_coords_& coord) const noexcept { @@ -14,7 +14,7 @@ size_t world::chunk_coords_hasher::operator()(const chunk_coords_& coord) const x |= uint64_t((uint16_t)coord.x) << 0; x |= uint64_t((uint16_t)coord.y) << 16; x |= uint64_t( (uint8_t)coord.z) << 32; - return (size_t)int_hash(x); + return int_hash(x); } namespace floormat { |