From 64384e7ca5b6f1b5c28dc952d1d9bea3f998cba0 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sat, 30 Sep 2023 09:49:36 -0500 Subject: [PATCH] :bug: bug: fix loader using the old broken `parse_int` for instruction count --- src/loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {