24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
From bbcd068659ced596402dedc78f49fabfab6470bd Mon Sep 17 00:00:00 2001
|
|
From: David Runge <dave@sleepmap.de>
|
|
Date: Sat, 29 Sep 2018 17:14:18 +0200
|
|
Subject: [PATCH] server/supernova/utilities/time_tag.hpp: Adding static_cast
|
|
to long for time_duration offset in microseconds to satisfy boost >= 1.67.0.
|
|
|
|
---
|
|
server/supernova/utilities/time_tag.hpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git server/supernova/utilities/time_tag.hpp server/supernova/utilities/time_tag.hpp
|
|
index 33b1effd80..3d0f21dba9 100644
|
|
--- server/supernova/utilities/time_tag.hpp
|
|
+++ server/supernova/utilities/time_tag.hpp
|
|
@@ -229,7 +229,7 @@ class time_tag
|
|
#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(static_cast<long>(get_nanoseconds()/1000));
|
|
#endif
|
|
return ptime(base, offset);
|
|
}
|