Don't use memcpy in PageChecksumCodec::checksum

This commit is contained in:
Trevor Clinkenbeard 2019-05-16 07:25:58 -07:00
parent 601c38ad82
commit aca90cd4e2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ struct PageChecksumCodec {
// Always write a CRC32 checksum for new pages
sum.part1 = 0; // Indicates CRC32 is being used
sum.part2 = crc32c_append(0xfdbeefdb, static_cast<uint8_t*>(data), dataLen);
memcpy(pSumInPage, &sum, sizeof(SumType));
*pSumInPage = sum;
return true;
}