diff --git a/src/loader.rs b/src/loader.rs index 983e1b2..fffb4e0 100644 --- a/src/loader.rs +++ b/src/loader.rs @@ -219,7 +219,7 @@ pub fn parse_block (rdr: &mut R, blocks: &mut Vec ) 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 {