ports/devel/ace/files/patch-tests_Chrono__Test.cpp
Fernando Apesteguía 5a02854ed0 devel/ace: update to 6.5.2
While here:

* Relocate some variables
* Rework some patches
* USE localbase

ChangeLog: https://github.com/DOCGroup/ACE_TAO/releases/tag/ACE%2BTAO-6_5_2

Reported by:	portscout
Approved by:	tcberner (mentor, implicit)
2018-10-06 16:24:26 +00:00

11 lines
626 B
C++

--- tests/Chrono_Test.cpp.orig 2018-10-05 15:55:54 UTC
+++ tests/Chrono_Test.cpp
@@ -208,7 +208,7 @@ test_streamers ()
std::chrono::seconds day_test_ts { day_test_h+day_test_s };
std::chrono::microseconds day_test_tus { day_test_ms+day_test_us };
ACE_Time_Value const test_day {
- ACE_Time_Value { day_test_ts.count (), ACE_Utils::truncate_cast<suseconds_t>(day_test_tus.count ()) }};
+ ACE_Time_Value { (int)(day_test_ts.count ()), ACE_Utils::truncate_cast<suseconds_t>(day_test_tus.count ()) }};
constexpr int expected_min {nr_hours * 60};
constexpr int64_t expected_sec { expected_min * 60 + 54 };