Fix typo in crc32_pad

Didn't affect anything though because it was only skipping < 4096 byte remainders
This commit is contained in:
Vitaliy Filippov
2026-05-18 01:17:56 +03:00
parent c2b5118127
commit 9e507fd333
+1 -1
View File
@@ -410,7 +410,7 @@ uint32_t crc32c_pad(uint32_t prev_crc, const void *buf, size_t len, size_t left_
r = crc32c(r, zero_page, 4096);
right_pad -= 4096;
}
if (left_pad > 0)
if (right_pad > 0)
r = crc32c(r, zero_page, right_pad);
return r;
}