From f2f651a3f33407f94d3cba44e496c3cc00176e30 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 10:27:15 +0100 Subject: a --- src/timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timer.cpp b/src/timer.cpp index 0bc73c9a..bd4baad8 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -51,7 +51,7 @@ double Time::to_seconds(const Ns& ts) noexcept auto x1 = double{ts}; auto x2 = x1 * 1e-9; fm_assert(x2 < double{1 << 24}); - return (double)x2; + return x2; } double Time::to_milliseconds(const Ns& ts) noexcept @@ -59,7 +59,7 @@ double Time::to_milliseconds(const Ns& ts) noexcept auto x1 = double{ts}; auto x2 = x1 * 1e-6; fm_assert(x2 < double{1 << 24}); - return (double)x2; + return x2; } const char* format_datetime_to_string(char (&buf)[fm_DATETIME_BUF_SIZE]) -- cgit v1.2.3