summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 15:43:02 +0200
committerGitHub <noreply@github.com>2018-04-20 15:43:02 +0200
commit701dd649e61470d3172390e138fd28b745dc20b4 (patch)
tree338a1669725ad9c0c01ee04bf69f57018a28e764 /src/core
parentMerge pull request #366 from lioncash/vec (diff)
parentcommon_funcs: Remove ARRAY_SIZE macro (diff)
downloadyuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.gz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.bz2
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.lz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.xz
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.tar.zst
yuzu-701dd649e61470d3172390e138fd28b745dc20b4.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/svc.cpp3
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;
}