From 9b8c44c889d3573af9f781cc4a53540699fbb81a Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Sat, 29 Jun 2019 02:02:25 +0100 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