From 7f049c0551fce18dc9e106d0f2b1ff3bdd909280 Mon Sep 17 00:00:00 2001 From: vms Date: Mon, 26 Apr 2021 00:35:31 +0300 Subject: [PATCH] fix bug with byte arrays --- crates/it-lilo/src/lifter/lift_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/it-lilo/src/lifter/lift_array.rs b/crates/it-lilo/src/lifter/lift_array.rs index 12a82a4..01de7cd 100644 --- a/crates/it-lilo/src/lifter/lift_array.rs +++ b/crates/it-lilo/src/lifter/lift_array.rs @@ -49,7 +49,7 @@ pub fn array_lift_memory( IType::F32 => reader.read_f32_array(offset, elements_count)?, IType::F64 => reader.read_f64_array(offset, elements_count)?, IType::String => read_string_array(lifter, offset, elements_count)?, - IType::ByteArray => read_array_array(lifter, &IType::ByteArray, offset, elements_count)?, + IType::ByteArray => read_array_array(lifter, &IType::U8, offset, elements_count)?, IType::Array(ty) => read_array_array(lifter, &ty, offset, elements_count)?, IType::Record(record_type_id) => { read_record_array(lifter, *record_type_id, offset, elements_count)?