Skip to content

Commit 12fcc52

Browse files
committed
temp2
1 parent b7a1f26 commit 12fcc52

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: include/boost/json/detail/digest.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ digest(
4242
std::size_t const m = n % step;
4343

4444
char temp[step];
45+
hash_t batch;
4546
while( n > m )
4647
{
4748
std::copy_n(b, step, temp);
4849

49-
hash_t batch;
5050
std::memcpy(&batch, temp, step);
5151
hash = (batch ^ hash) * prime;
5252

@@ -56,11 +56,9 @@ digest(
5656

5757
std::memset(temp, 0, step);
5858
std::copy_n(b, n, temp);
59-
BOOST_ASSERT( std::next(b, n) == e );
6059

61-
hash_t batch;
6260
std::memcpy(&batch, temp, step);
63-
hash = (batch ^ hash) * prime;
61+
// hash = (batch ^ hash) * prime;
6462

6563
return hash;
6664
}

0 commit comments

Comments
 (0)