diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-10-11 13:37:41 +1300 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-07-30 17:43:59 +1000 |
| commit | 479abde9f4c752aaf1ca113d18159a74bc8aebb1 (patch) | |
| tree | 54562b0155b83aec2d862654fb62d485aa610b77 /Source/Core/VideoCommon/BPMemory.cpp | |
| parent | 0a9574eaa10f30e63f13c8fc35d6afcbdb4b1d76 (diff) | |
BPMemory: Convert a number of unions to BitFields
Diffstat (limited to 'Source/Core/VideoCommon/BPMemory.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPMemory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPMemory.cpp b/Source/Core/VideoCommon/BPMemory.cpp index 67eeb994b1..26891ba941 100644 --- a/Source/Core/VideoCommon/BPMemory.cpp +++ b/Source/Core/VideoCommon/BPMemory.cpp @@ -24,8 +24,7 @@ float FogParam0::GetA() const float FogParam3::GetC() const { // scale mantissa from 11 to 23 bits - const u32 integral = (static_cast<u32>(c_sign) << 31) | (static_cast<u32>(c_exp) << 23) | - (static_cast<u32>(c_mant) << 12); + const u32 integral = (c_sign.Value() << 31) | (c_exp.Value() << 23) | (c_mant.Value() << 12); float real; std::memcpy(&real, &integral, sizeof(u32)); |
