From ba9f55679d244e3196d7f0854b579bf386793497 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Sat, 3 Jun 2023 18:32:02 +0300 Subject: [PATCH] Update sys_timer.cpp --- rpcs3/Emu/Cell/lv2/sys_timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_timer.cpp b/rpcs3/Emu/Cell/lv2/sys_timer.cpp index 68d29ea82c..23c94ec290 100644 --- a/rpcs3/Emu/Cell/lv2/sys_timer.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_timer.cpp @@ -95,7 +95,7 @@ u64 lv2_timer::check_unlocked(u64 _now) noexcept // Set next expiration time and check again const u64 expire0 = utils::add_saturate(next, period); expire.release(expire0); - return expire0 - _now; + return utils::sub_saturate(expire0, _now); } // Stop after oneshot