diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-24 18:11:32 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-24 18:12:17 -0400 |
commit | c5d41fd812d7eb1a04f36b76c08fe971cee0868c (patch) | |
tree | 420a9ba00464d14b55e4346ae3951c61f7999cdc /src/core/core_timing.h | |
parent | 3f74518e19331f1344960ae522c7439446febcd0 (diff) |
core/core_timing: Make callback parameters consistent
In some cases, our callbacks were using s64 as a parameter, and in other
cases, they were using an int, which is inconsistent.
To make all callbacks consistent, we can just use an s64 as the type for
late cycles, given it gets rid of the need to cast internally.
While we're at it, also resolve some signed/unsigned conversions that
were occurring related to the callback registration.
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r-- | src/core/core_timing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 59163bae1c..9d2efde37f 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -15,7 +15,7 @@ namespace Core::Timing { /// A callback that may be scheduled for a particular core timing event. -using TimedCallback = std::function<void(u64 userdata, int cycles_late)>; +using TimedCallback = std::function<void(u64 userdata, s64 cycles_late)>; /// Contains the characteristics of a particular event. struct EventType { |