🐛 bug: fix loader using the old broken `parse_int` for instruction count

main
_ 2023-09-30 09:49:36 -05:00
parent 9bfd3c64c3
commit 64384e7ca5
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ pub fn parse_block <R: Read> (rdr: &mut R, blocks: &mut Vec <Block>)
parse_byte (rdr).unwrap (); // is_vararg
parse_byte (rdr).unwrap (); // maxstacksize, might be same as num slots?
let inst_count = parse_int (rdr).unwrap ();
let inst_count = load_size (rdr);
let mut instructions = Vec::with_capacity (inst_count as usize);
for _ in 0..inst_count {