summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2016-02-14 14:19:53 -0700
committerMatt Mastracci <matthew@mastracci.com>2016-02-14 14:27:08 -0700
commit4e6f58d82eba4a7e098b31a1ab474f6f38959bf7 (patch)
tree8e7d335bab13560f90dbfc1d41b99092fbd4e9ab /Source
parentcafc879b7cbb4822a1401f2f9c7bad337c11817b (diff)
[DVD] Signedness fix in realistic timing path
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/HW/DVDInterface.cpp2
1 files changed, 1 insertions, 1 deletions
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",