From 665591cb4ccca27da173a88b71b6f9f2b6eb9341 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Mon, 29 Mar 2021 16:41:11 +0200 Subject: [PATCH] Fix Timestamp class NANOS_TO_SECONDS --- openVulkanoCpp/Math/Timestamp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Math/Timestamp.hpp b/openVulkanoCpp/Math/Timestamp.hpp index e8fdb97..47fd9b0 100644 --- a/openVulkanoCpp/Math/Timestamp.hpp +++ b/openVulkanoCpp/Math/Timestamp.hpp @@ -13,7 +13,7 @@ namespace openVulkanoCpp::Math class Timestamp final { static constexpr uint64_t SECONDS_TO_NANOS = 1'000'000'000ull; - static constexpr double NANOS_TO_SECONDS = 1 / SECONDS_TO_NANOS; + static constexpr double NANOS_TO_SECONDS = 1.0 / SECONDS_TO_NANOS; uint64_t timestamp;