engines: Remove unnecessary casts

In a few cases we have some casts that can be trivially removed.
This commit is contained in:
Lioncash
2022-11-29 08:04:40 -05:00
parent 6291eec700
commit d7ec031419
10 changed files with 57 additions and 85 deletions

View File

@ -97,7 +97,7 @@ public:
u32 addr_lower;
[[nodiscard]] constexpr GPUVAddr Address() const noexcept {
return (static_cast<GPUVAddr>(addr_upper) << 32) | static_cast<GPUVAddr>(addr_lower);
return (GPUVAddr{addr_upper} << 32) | GPUVAddr{addr_lower};
}
};
static_assert(sizeof(Surface) == 0x28, "Surface has incorrect size");