From f9f2cd025031fe9218e0d84c331f30a88cef16d0 Mon Sep 17 00:00:00 2001 From: Nabile Rahmani Date: Thu, 21 Jun 2018 20:47:29 +0200 Subject: [PATCH] Fixed casting on LD. --- DotN64/CPU/VR4300/VR4300.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotN64/CPU/VR4300/VR4300.cs b/DotN64/CPU/VR4300/VR4300.cs index af9efee..0de9c6d 100644 --- a/DotN64/CPU/VR4300/VR4300.cs +++ b/DotN64/CPU/VR4300/VR4300.cs @@ -332,7 +332,7 @@ namespace DotN64.CPU case AccessSize.Word: return ReadSysAD(physicalAddress); case AccessSize.DoubleWord: - return ReadSysAD(physicalAddress) << 32 | ReadSysAD(physicalAddress + sizeof(uint)); + return (ulong)ReadSysAD(physicalAddress) << 32 | (ulong)ReadSysAD(physicalAddress + sizeof(uint)); default: throw new ArgumentException("Invalid system bus access size.", nameof(size)); }