Fixed casting on LD.

master
Nabile Rahmani 2018-06-21 20:47:29 +02:00
parent 1d65c968e5
commit f9f2cd0250
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}