misc: chore: Use explicit types in Memory project

This commit is contained in:
Evan Husted
2025-01-25 14:09:36 -06:00
parent ac401034d7
commit fe661dc750
14 changed files with 48 additions and 48 deletions

View File

@ -109,7 +109,7 @@ namespace Ryujinx.Memory
yield break;
}
foreach (var hostRegion in GetHostRegionsImpl(va, size))
foreach (HostMemoryRange hostRegion in GetHostRegionsImpl(va, size))
{
yield return hostRegion;
}
@ -123,7 +123,7 @@ namespace Ryujinx.Memory
yield break;
}
var hostRegions = GetHostRegionsImpl(va, size);
IEnumerable<HostMemoryRange> hostRegions = GetHostRegionsImpl(va, size);
if (hostRegions == null)
{
yield break;
@ -132,7 +132,7 @@ namespace Ryujinx.Memory
ulong backingStart = (ulong)_backingMemory.Pointer;
ulong backingEnd = backingStart + _backingMemory.Size;
foreach (var hostRegion in hostRegions)
foreach (HostMemoryRange hostRegion in hostRegions)
{
if (hostRegion.Address >= backingStart && hostRegion.Address < backingEnd)
{