From c55b5de0fb0c8db59b0520553b22e520b5f966ed Mon Sep 17 00:00:00 2001 From: David Marcec Date: Fri, 12 Oct 2018 17:06:46 +1100 Subject: Made the minimum alignment more clear --- src/core/hle/service/nvdrv/devices/nvmap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/hle/service') diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index c0b5ac47b..43651d8a6 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp @@ -85,8 +85,9 @@ u32 nvmap::IocAlloc(const std::vector& input, std::vector& output) { return static_cast(NvErrCodes::InvalidValue); } - if (params.align < 0x1000) { - params.align = 0x1000; + const u32 min_alignment = 0x1000; + if (params.align < min_alignment) { + params.align = min_alignment; } auto object = GetObject(params.handle); -- cgit v1.2.3