diff options
author | Lioncash <mathew1800@gmail.com> | 2018-04-20 04:36:48 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-04-20 04:36:52 +0200 |
commit | d9e316e3538c0c0891f04bbfd0e211749ba15b5d (patch) | |
tree | c218d1705222ae899c613427b01e1947a1c22893 /src/core | |
parent | Merge pull request #356 from lioncash/shader (diff) | |
download | yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.gz yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.bz2 yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.lz yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.xz yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.tar.zst yuzu-d9e316e3538c0c0891f04bbfd0e211749ba15b5d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 54b1d5d75..6204bcaaa 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -4,6 +4,7 @@ #include <algorithm> #include <cinttypes> +#include <iterator> #include "common/logging/log.h" #include "common/microprofile.h" @@ -946,7 +947,7 @@ static const FunctionDef SVC_Table[] = { }; static const FunctionDef* GetSVCInfo(u32 func_num) { - if (func_num >= ARRAY_SIZE(SVC_Table)) { + if (func_num >= std::size(SVC_Table)) { LOG_ERROR(Kernel_SVC, "unknown svc=0x%02X", func_num); return nullptr; } |