From: Debian Multimedia Maintainers Date: Sat, 29 Jun 2019 01:02:25 +0000 (+0100) Subject: fix-numeric-type X-Git-Tag: archive/raspbian/1%3.10.4+repack-1+rpi1~1^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9b8c44c889d3573af9f781cc4a53540699fbb81a;p=supercollider.git 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 --- 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); }