Improve compatibility for 32 bits dump

This commit is contained in:
Guilhem Lavaux 2021-04-23 11:46:36 +02:00
parent 014f7f9564
commit 56e6761bf5

View File

@ -139,14 +139,16 @@ void UnformattedRead::beginCheckpoint(bool bufferRecord)
void UnformattedRead::endCheckpoint(bool autodrop)
{
bool always_fail = false;
if (recordBuffer != 0) {
delete[] recordBuffer;
recordBuffer = 0;
}
if (cSize == Check_32bits) {
if (checkPointAccum >= 1<<32UL) {
if (checkPointAccum >= 1UL<<32UL) {
always_fail = true;
checkPointAccum %= (1<<32UL);
checkPointAccum %= (1UL<<32UL);
}
}