aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/sm/sm_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/sm/sm_controller.cpp')
-rw-r--r--src/core/hle/service/sm/sm_controller.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp
index 9e25eae4d4..3b63d162c4 100644
--- a/src/core/hle/service/sm/sm_controller.cpp
+++ b/src/core/hle/service/sm/sm_controller.cpp
@@ -74,9 +74,9 @@ void Controller::QueryPointerBufferSize(HLERequestContext& ctx) {
ASSERT(process != nullptr);
u32 buffer_size = process->GetPointerBufferSize();
- if (buffer_size > std::numeric_limits<u16>::max()) {
+ if (buffer_size > (std::numeric_limits<u16>::max)()) {
LOG_WARNING(Service, "Pointer buffer size exceeds u16 max, clamping");
- buffer_size = std::numeric_limits<u16>::max();
+ buffer_size = (std::numeric_limits<u16>::max)();
}
IPC::ResponseBuilder rb{ctx, 3};
@@ -94,9 +94,9 @@ void Controller::SetPointerBufferSize(HLERequestContext& ctx) {
u32 requested_size = rp.PopRaw<u32>();
- if (requested_size > std::numeric_limits<u16>::max()) {
+ if (requested_size > (std::numeric_limits<u16>::max)()) {
LOG_WARNING(Service, "Requested pointer buffer size too large, clamping to 0xFFFF");
- requested_size = std::numeric_limits<u16>::max();
+ requested_size = (std::numeric_limits<u16>::max)();
}
process->SetPointerBufferSize(requested_size);