From b74f3c368bb39cf934ed2d41d2361c3c9d68e860 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 26 Dec 2022 12:03:14 +0300 Subject: [PATCH] Fix warning --- src/fps_limiter.cc | 2 +- src/fps_limiter.h | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/fps_limiter.cc b/src/fps_limiter.cc index 8ac9a56..7b62137 100644 --- a/src/fps_limiter.cc +++ b/src/fps_limiter.cc @@ -4,7 +4,7 @@ namespace fallout { -FpsLimiter::FpsLimiter(std::size_t fps) +FpsLimiter::FpsLimiter(unsigned int fps) : _fps(fps) , _ticks(0) { diff --git a/src/fps_limiter.h b/src/fps_limiter.h index 95df0aa..ce33346 100644 --- a/src/fps_limiter.h +++ b/src/fps_limiter.h @@ -1,19 +1,17 @@ #ifndef FPS_LIMITER_H #define FPS_LIMITER_H -#include - namespace fallout { class FpsLimiter { public: - FpsLimiter(std::size_t fps = 60); + FpsLimiter(unsigned int fps = 60); void mark(); void throttle() const; private: - const std::size_t _fps; - std::size_t _ticks; + const unsigned int _fps; + unsigned int _ticks; }; } // namespace fallout