Skip to content
Snippets Groups Projects
Commit 2624b1ea authored by Lioncash's avatar Lioncash
Browse files

core_timing: Resolve sign conversion warning

This constant is only ever assigned to downcount, which is a s64, not a
u64.
parent 3ea3de4e
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
namespace Core::Timing { namespace Core::Timing {
constexpr u64 MAX_SLICE_LENGTH = 4000; constexpr s64 MAX_SLICE_LENGTH = 4000;
std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback) { std::shared_ptr<EventType> CreateEvent(std::string name, TimedCallback&& callback) {
return std::make_shared<EventType>(std::move(callback), std::move(name)); 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,7 +136,7 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type,
void CoreTiming::AddTicks(u64 ticks) { void CoreTiming::AddTicks(u64 ticks) {
this->ticks += ticks; this->ticks += ticks;
downcount -= ticks; downcount -= static_cast<s64>(ticks);
} }
void CoreTiming::Idle() { void CoreTiming::Idle() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment