Changes between Initial Version and Version 2 of Ticket #6898
- Timestamp:
- Aug 15, 2012, 1:59:47 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6898 – Description
initial v2 17 17 Looking the code in the latest Boost version the line that the warning is pointing hasn't changed. 18 18 19 20 {{{ 19 21 uint32_t sub_sec = (caster.as_integer % 10000000UL) 20 22 #if !defined(BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG) … … 23 25 * 100; // nanoseconds since the last second 24 26 #endif 27 }}} 28 25 29 26 30 A quick way to resolve it would be to static_cast<uint32_t> the results. The cast shouldn't cause any data loss as the mod is and the multiplication are keeping the maximum value within the uint32_t range.