Changes between Initial Version and Version 2 of Ticket #6898


Ignore:
Timestamp:
Aug 15, 2012, 1:59:47 PM (10 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6898 – Description

    initial v2  
    1717Looking the code in the latest Boost version the line that the warning is pointing hasn't changed.
    1818
     19
     20{{{
    1921uint32_t sub_sec = (caster.as_integer % 10000000UL)
    2022#if !defined(BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG)
     
    2325        * 100; // nanoseconds since the last second
    2426#endif
     27}}}
     28
    2529
    2630A 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.