- expected_num_entries = DIV_ROUND_UP(num_checked_bytes, table->chunk_size);
-
- if (table->num_entries != expected_num_entries) {
- ERROR("%"PRIu64" integrity table entries would be required "
- "to checksum the %"PRIu64" bytes from the end of the "
- "header to the",
- expected_num_entries, num_checked_bytes);
- ERROR("end of the lookup table with a chunk size of %u, but "
- "there were only %u entries",
- table->chunk_size, table->num_entries);
- ret = WIMLIB_ERR_INVALID_INTEGRITY_TABLE;
- goto out_free_table;
- }