mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-21 15:48:04 +00:00
engines: Remove unnecessary casts
In a few cases we have some casts that can be trivially removed.
This commit is contained in:
parent
755e1e93c7
commit
0d9c723df4
10 changed files with 57 additions and 85 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue