From 0961fca16a0d007c58d377a3d246ead08f63de7b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 09:37:36 +0100 Subject: a --- src/timer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/timer.cpp b/src/timer.cpp index f67d7324..0bc73c9a 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 (float)x2; + return (double)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 (float)x2; + return (double)x2; } const char* format_datetime_to_string(char (&buf)[fm_DATETIME_BUF_SIZE]) -- cgit v1.2.3