From ce5ad45278e75d215b2257cde161895915670b2a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Aug 2018 12:15:45 -0400 Subject: kernel/vm_manager: Use the VAddr type alias in CarveVMA() These two variables correspond to address ranges. --- src/core/hle/kernel/vm_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp index 9d26fd781..d8b389b65 100644 --- a/src/core/hle/kernel/vm_manager.cpp +++ b/src/core/hle/kernel/vm_manager.cpp @@ -264,8 +264,8 @@ ResultVal VMManager::CarveVMA(VAddr base, u64 size) { return ERR_INVALID_ADDRESS_STATE; } - u64 start_in_vma = base - vma.base; - u64 end_in_vma = start_in_vma + size; + VAddr start_in_vma = base - vma.base; + VAddr end_in_vma = start_in_vma + size; if (end_in_vma > vma.size) { // Requested allocation doesn't fit inside VMA -- cgit v1.2.3