Skip to content

Commit

Permalink
temp2
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Jun 16, 2023
1 parent b7a1f26 commit 12fcc52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/boost/json/detail/digest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ digest(
std::size_t const m = n % step;

char temp[step];
hash_t batch;
while( n > m )
{
std::copy_n(b, step, temp);

hash_t batch;
std::memcpy(&batch, temp, step);
hash = (batch ^ hash) * prime;

Expand All @@ -56,11 +56,9 @@ digest(

std::memset(temp, 0, step);
std::copy_n(b, n, temp);
BOOST_ASSERT( std::next(b, n) == e );

hash_t batch;
std::memcpy(&batch, temp, step);
hash = (batch ^ hash) * prime;
// hash = (batch ^ hash) * prime;

return hash;
}
Expand Down

0 comments on commit 12fcc52

Please sign in to comment.