From aa54448d32096fb4bbcf034a3698a6dbd335815a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 8 Apr 2026 14:23:48 -0400 Subject: [PATCH] Fix types. --- Storage/TimedEventLoop.cpp | 2 +- Storage/TimedEventLoop.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Storage/TimedEventLoop.cpp b/Storage/TimedEventLoop.cpp index 782e91c4b..a1396b037 100644 --- a/Storage/TimedEventLoop.cpp +++ b/Storage/TimedEventLoop.cpp @@ -96,7 +96,7 @@ void TimedEventLoop::set_next_event_time_interval(const float interval) { } #ifndef NDEBUG -float TimedEventLoop::get_reset_cycles_total() { +Cycles TimedEventLoop::get_reset_cycles_total() { const auto result = cycles_total_; cycles_total_ = 0; return result; diff --git a/Storage/TimedEventLoop.hpp b/Storage/TimedEventLoop.hpp index fa42a68ed..a5109d83b 100644 --- a/Storage/TimedEventLoop.hpp +++ b/Storage/TimedEventLoop.hpp @@ -112,7 +112,7 @@ protected: Time get_time_into_next_event(); #ifndef NDEBUG - float get_reset_cycles_total(); + Cycles get_reset_cycles_total(); #endif private: @@ -121,7 +121,7 @@ private: float subcycles_until_event_ = 0.0f; #ifndef NDEBUG int event_count_ = 0; - float cycles_total_ = 0.0f; + Cycles::IntType cycles_total_ = 0.0f; #endif };