Skip to content

Commit 741a66e

Browse files
committed
std.zig.llvm.BitcodeReader: fix 32-bit skipBlock
1 parent 83960e0 commit 741a66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/zig/llvm/BitcodeReader.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub fn next(bc: *BitcodeReader) !?Item {
177177

178178
pub fn skipBlock(bc: *BitcodeReader, block: Block) !void {
179179
assert(bc.bit_offset == 0);
180-
try bc.reader.discardAll(4 * @as(u34, block.len));
180+
try bc.reader.discardAll(4 * @as(usize, block.len));
181181
try bc.endBlock();
182182
}
183183

0 commit comments

Comments
 (0)