mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 20:00:17 +00:00
Make types match on calls to AlignUp/AlignDown
This commit is contained in:
parent
f8dc005e5c
commit
d5d971bc95
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ namespace Ryujinx.Horizon
|
||||||
private void ExpandHeap(ulong expansionSize)
|
private void ExpandHeap(ulong expansionSize)
|
||||||
{
|
{
|
||||||
ulong oldHeapSize = _currentHeapSize;
|
ulong oldHeapSize = _currentHeapSize;
|
||||||
ulong newHeapSize = BitUtils.AlignUp(oldHeapSize + expansionSize, 0x200000);
|
ulong newHeapSize = BitUtils.AlignUp(oldHeapSize + expansionSize, 0x200000UL);
|
||||||
|
|
||||||
_currentHeapSize = newHeapSize;
|
_currentHeapSize = newHeapSize;
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ namespace Ryujinx.Horizon.Sdk.Sf
|
||||||
size = recvPointerSizes[unfixedRecvPointerIndex++];
|
size = recvPointerSizes[unfixedRecvPointerIndex++];
|
||||||
}
|
}
|
||||||
|
|
||||||
pointerBufferHead = BitUtils.AlignDown(pointerBufferHead - size, 0x10);
|
pointerBufferHead = BitUtils.AlignDown(pointerBufferHead - size, 0x10UL);
|
||||||
_bufferRanges[i] = new PointerAndSize(pointerBufferHead, size);
|
_bufferRanges[i] = new PointerAndSize(pointerBufferHead, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue