Skip to content

Commit

Permalink
Merge pull request #165 from k3DW/sign-conversion
Browse files Browse the repository at this point in the history
Fix more sign conversion errors
  • Loading branch information
pdimov authored Aug 19, 2024
2 parents c181b5b + 7909c54 commit c432e16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions include/boost/uuid/uuid.hpp
Original file line number Diff line number Diff line change
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 c432e16

Please sign in to comment.