diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-10 16:53:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 16:53:40 +0100 |
commit | 84743fd6ce2171f337f220601ea3315055ed7684 (patch) | |
tree | 2c875d2eba5947c6b818bbd64699e0f78b0a0456 /src/core/hle/kernel | |
parent | Merge pull request #9736 from Kelebek1/dynamic_vertex_attribs (diff) | |
parent | kernel: avoid usage of bit_cast (diff) | |
download | yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar.gz yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar.bz2 yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar.lz yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar.xz yuzu-84743fd6ce2171f337f220601ea3315055ed7684.tar.zst yuzu-84743fd6ce2171f337f220601ea3315055ed7684.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/svc_version.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc_version.h b/src/core/hle/kernel/svc_version.h index e4f47b34b..3eb95aa7b 100644 --- a/src/core/hle/kernel/svc_version.h +++ b/src/core/hle/kernel/svc_version.h @@ -35,11 +35,11 @@ constexpr inline u32 EncodeKernelVersion(u32 major, u32 minor) { } constexpr inline u32 GetKernelMajorVersion(u32 encoded) { - return std::bit_cast<decltype(KernelVersion::major_version)>(encoded).Value(); + return decltype(KernelVersion::major_version)::ExtractValue(encoded); } constexpr inline u32 GetKernelMinorVersion(u32 encoded) { - return std::bit_cast<decltype(KernelVersion::minor_version)>(encoded).Value(); + return decltype(KernelVersion::minor_version)::ExtractValue(encoded); } // Nintendo doesn't support programs targeting SVC versions < 3.0. |