From 09803d64075bf5d01167d192c9b59846e6832b19 Mon Sep 17 00:00:00 2001 From: gdk Date: Wed, 16 Mar 2022 23:05:40 -0300 Subject: [PATCH] Add back ulong casts, fix regression due to oversight --- .../Nv/NvDrvServices/NvHostAsGpu/NvHostAsGpuDeviceFile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostAsGpu/NvHostAsGpuDeviceFile.cs b/Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostAsGpu/NvHostAsGpuDeviceFile.cs index b066c5bd3..3314002c6 100644 --- a/Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostAsGpu/NvHostAsGpuDeviceFile.cs +++ b/Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostAsGpu/NvHostAsGpuDeviceFile.cs @@ -367,8 +367,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu for (int index = 0; index < arguments.Length; index++) { ref RemapArguments argument = ref arguments[index]; - ulong gpuVa = argument.GpuOffset << 16; - ulong size = argument.Pages << 16; + ulong gpuVa = (ulong)argument.GpuOffset << 16; + ulong size = (ulong)argument.Pages << 16; int nvmapHandle = argument.NvMapHandle; if (nvmapHandle == 0) @@ -377,7 +377,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu } else { - ulong mapOffs = argument.MapOffset << 16; + ulong mapOffs = (ulong)argument.MapOffset << 16; PteKind kind = (PteKind)argument.Kind; NvMapHandle map = NvMapDeviceFile.GetMapFromHandle(Owner, nvmapHandle);