From 0f120975f31795db90e1759544c370df5fb9214f Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Sun, 3 Feb 2019 21:31:06 +0000 Subject: [PATCH] fix-numeric-type fixed a type inconsistency: forced the result of get_nanoseconds() to fixed a type inconsistency: forced the result of get_nanoseconds() to double before the division by 1000. Gbp-Pq: Name fix-numeric-type.patch --- server/supernova/utilities/time_tag.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/supernova/utilities/time_tag.hpp b/server/supernova/utilities/time_tag.hpp index 33b1eff..bfedbf7 100644 --- a/server/supernova/utilities/time_tag.hpp +++ b/server/supernova/utilities/time_tag.hpp @@ -229,7 +229,7 @@ public: #ifdef BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG time_duration offset = seconds(get_secs() - ntp_offset) + nanoseconds(get_nanoseconds()); #else - time_duration offset = seconds(get_secs() - ntp_offset) + microseconds(get_nanoseconds()/1000); + time_duration offset = seconds(get_secs() - ntp_offset) + microseconds((long) get_nanoseconds()/1000); #endif return ptime(base, offset); } -- 2.30.2