aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/resource_limit.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-15 14:49:45 -0400
committerLioncash <mathew1800@gmail.com>2020-10-17 19:50:39 -0400
commit18636013c938b247a97d4f379fc1fe271ff39c3a (patch)
tree267db7ae4be88dbbc288fa605e35d4a2a13839f6 /src/core/hle/kernel/resource_limit.cpp
parent72df55f8a5c90bf8a662ab77688e4156ff90839f (diff)
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
Diffstat (limited to 'src/core/hle/kernel/resource_limit.cpp')
-rw-r--r--src/core/hle/kernel/resource_limit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp
index 212e442f42..e94093f246 100644
--- a/src/core/hle/kernel/resource_limit.cpp
+++ b/src/core/hle/kernel/resource_limit.cpp
@@ -43,8 +43,8 @@ void ResourceLimit::Release(ResourceType resource, u64 amount) {
void ResourceLimit::Release(ResourceType resource, u64 used_amount, u64 available_amount) {
const std::size_t index{ResourceTypeToIndex(resource)};
- current[index] -= used_amount;
- available[index] -= available_amount;
+ current[index] -= static_cast<s64>(used_amount);
+ available[index] -= static_cast<s64>(available_amount);
}
std::shared_ptr<ResourceLimit> ResourceLimit::Create(KernelCore& kernel) {