2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Avoid -Wconversion warning in time_generator_v6.hpp under GCC 5 and below

This commit is contained in:
Peter Dimov
2026-01-04 18:25:24 +02:00
parent eabd000a54
commit 0b86240e0d

View File

@@ -41,7 +41,7 @@ inline time_generator_v6::result_type time_generator_v6::operator()() noexcept
detail::store_big_u16( result.data + 4, time_mid );
std::uint16_t time_low_and_version = static_cast< std::uint16_t >( timestamp & 0xFFF ) | 0x6000;
std::uint16_t time_low_and_version = static_cast< std::uint16_t >( ( timestamp & 0xFFF ) | 0x6000 );
detail::store_big_u16( result.data + 6, time_low_and_version );