Skip to content

Commit

Permalink
Fix more sign conversion errors
Browse files Browse the repository at this point in the history
  • Loading branch information
k3DW committed Aug 19, 2024
1 parent c181b5b commit 662d55d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/boost/uuid/detail/to_chars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ template<class Ch> inline Ch* to_chars( uuid const& u, Ch* out ) noexcept

for( std::size_t i = 0; i < 16; ++i )
{
std::uint8_t ch = u.data[ i ];
std::uint8_t ch = u.data()[ i ];

*out++ = p[ (ch >> 4) & 0x0F ];
*out++ = p[ ch & 0x0F ];
Expand Down
8 changes: 4 additions & 4 deletions include/boost/uuid/uuid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ struct uuid
operator repr_type& () noexcept { return repr_; }
operator repr_type const& () const noexcept { return repr_; }

std::uint8_t* operator()() noexcept { return repr_; }
std::uint8_t const* operator()() const noexcept { return repr_; }
repr_type& operator()() noexcept { return repr_; }
repr_type const& operator()() const noexcept { return repr_; }

#if BOOST_WORKAROUND(BOOST_MSVC, < 1930)

Expand Down Expand Up @@ -121,8 +121,8 @@ struct uuid
iterator begin() noexcept { return data; }
const_iterator begin() const noexcept { return data; }

iterator end() noexcept { return data + size(); }
const_iterator end() const noexcept { return data + size(); }
iterator end() noexcept { return data() + size(); }
const_iterator end() const noexcept { return data() + size(); }

// size

Expand Down

0 comments on commit 662d55d

Please sign in to comment.