diff options
author | Liam <byteslice@airmail.cc> | 2023-02-10 15:13:58 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-02-10 15:13:58 +0100 |
commit | 36b70dec05d18403177fcee42e7a6a05cf7a1d48 (patch) | |
tree | 2c875d2eba5947c6b818bbd64699e0f78b0a0456 /src/core | |
parent | Merge pull request #9736 from Kelebek1/dynamic_vertex_attribs (diff) | |
download | yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar.gz yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar.bz2 yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar.lz yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar.xz yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.tar.zst yuzu-36b70dec05d18403177fcee42e7a6a05cf7a1d48.zip |
Diffstat (limited to '')
-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. |