Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Feb 22, 2020
1 parent d8ef8be commit 6293d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tao/pq/internal/endian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ namespace tao::pq::internal
static_assert( std::is_trivial_v< V > );

U u;
std::memcpy( &u, &v, 8 );
std::memcpy( &u, &v, sizeof( U ) );
u = internal::hton( u );
std::memcpy( &v, &u, 8 );
std::memcpy( &v, &u, sizeof( U ) );
return v;
}

Expand Down

0 comments on commit 6293d9c

Please sign in to comment.