From 6096fa0e45e4d324897f0b13c22cee7ca4f25e34 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 30 Mar 2020 22:27:02 -0400 Subject: [PATCH] KPageHeap: Fix a typo in initialization block alignment. (#862) --- libraries/libmesosphere/include/mesosphere/kern_k_page_heap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/include/mesosphere/kern_k_page_heap.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_page_heap.hpp index 54feb2231..f63b75383 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_page_heap.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_k_page_heap.hpp @@ -239,7 +239,7 @@ namespace ams::kern { /* Align up the address. */ KVirtualAddress end = addr + size; - const size_t align = (this->next_block_shift != 0) ? (u64(1) << this->next_block_shift) : (this->block_shift); + const size_t align = (this->next_block_shift != 0) ? (u64(1) << this->next_block_shift) : (u64(1) << this->block_shift); addr = util::AlignDown(GetInteger(addr), align); end = util::AlignUp(GetInteger(end), align);