diff options
| author | 2020-08-22 20:20:55 -0400 | |
|---|---|---|
| committer | 2020-08-22 20:26:45 -0400 | |
| commit | 2624b1eae6df88c99d08dc5bb13dab35943d3fa2 (patch) | |
| tree | ad95f3799284abfa7eb8887e4402f8f8660b7705 | |
| parent | Merge pull request #4546 from lioncash/telemetry (diff) | |
| download | yuzu-2624b1eae6df88c99d08dc5bb13dab35943d3fa2.tar.gz yuzu-2624b1eae6df88c99d08dc5bb13dab35943d3fa2.tar.xz yuzu-2624b1eae6df88c99d08dc5bb13dab35943d3fa2.zip | |
core_timing: Resolve sign conversion warning
This constant is only ever assigned to downcount, which is a s64, not a
u64.
Diffstat (limited to '')
| -rw-r--r-- | src/core/core_timing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 71af26ec5..d987a2cfc 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | namespace Core::Timing { | 15 | namespace Core::Timing { |
| 16 | 16 | ||
| 17 | constexpr u64 MAX_SLICE_LENGTH = 4000; | 17 | constexpr s64 MAX_SLICE_LENGTH = 4000; |
| 18 | 18 | ||
| 19 | std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback) { | 19 | std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback) { |
| 20 | return std::make_shared<EventType>(std::move(callback), std::move(name)); | 20 | return std::make_shared<EventType>(std::move(callback), std::move(name)); |
| @@ -136,7 +136,7 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type, | |||
| 136 | 136 | ||
| 137 | void CoreTiming::AddTicks(u64 ticks) { | 137 | void CoreTiming::AddTicks(u64 ticks) { |
| 138 | this->ticks += ticks; | 138 | this->ticks += ticks; |
| 139 | downcount -= ticks; | 139 | downcount -= static_cast<s64>(ticks); |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | void CoreTiming::Idle() { | 142 | void CoreTiming::Idle() { |