summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-10 16:53:40 +0100
committerGitHub <noreply@github.com>2023-02-10 16:53:40 +0100
commit84743fd6ce2171f337f220601ea3315055ed7684 (patch)
tree2c875d2eba5947c6b818bbd64699e0f78b0a0456 /src/core/hle/kernel
parentMerge pull request #9736 from Kelebek1/dynamic_vertex_attribs (diff)
parentkernel: avoid usage of bit_cast (diff)
downloadyuzu-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.h4
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.