std.zig.llvm.BitcodeReader: fix 32-bit skipBlock

This commit is contained in:
Andrew Kelley 2025-07-18 20:51:37 -07:00
parent 83960e0eb0
commit 741a66e03c

View file

@ -177,7 +177,7 @@ pub fn next(bc: *BitcodeReader) !?Item {
pub fn skipBlock(bc: *BitcodeReader, block: Block) !void {
assert(bc.bit_offset == 0);
try bc.reader.discardAll(4 * @as(u34, block.len));
try bc.reader.discardAll(4 * @as(usize, block.len));
try bc.endBlock();
}