From 4e6f58d82eba4a7e098b31a1ab474f6f38959bf7 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sun, 14 Feb 2016 14:19:53 -0700 Subject: [PATCH] [DVD] Signedness fix in realistic timing path --- Source/Core/Core/HW/DVDInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DVDInterface.cpp b/Source/Core/Core/HW/DVDInterface.cpp index e001dac401..27a4b5a9a7 100644 --- a/Source/Core/Core/HW/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVDInterface.cpp @@ -1301,7 +1301,7 @@ u64 SimulateDiscReadTime(u64 offset, u32 length) u64 disk_read_duration = CalculateRawDiscReadTime(offset, length) + SystemTimers::GetTicksPerSecond() / 1000 * DISC_ACCESS_TIME_MS; - if (offset + length - s_last_read_offset > 1024 * 1024) + if (offset + length > s_last_read_offset + 1024 * 1024) { // No buffer; just use the simple seek time + read time. DEBUG_LOG(DVDINTERFACE, "Seeking %" PRId64 " bytes",