pdf: inline_len returns the checked product directly (clippy)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bflatastic
2026-10-16 17:48:08 +07:00
co-authored by Claude Opus 5.5
parent f8b587503d
commit 6f2f98b398
+1 -1
View File
@@ -85,7 +85,7 @@ pub(crate) fn inline_len(file: &File, d: &Dict, res: Option<&Dict>) -> Option<us
// `Width`/`Height` come straight from the file and can be enormous: fall back to the
// `EI` scan (the caller's `None` branch) instead of overflowing the arithmetic.
let row = w.checked_mul(n)?.checked_mul(bpc)?.div_ceil(8);
Some(row.checked_mul(h)?)
row.checked_mul(h)
}
/// Decode an image's samples (all filters, including DCT). Returns (bytes, components from