Update dependencies (#30)
* dev-test: update dependencies * update wasmparser: 0.99.0 -> 0.101.1 Remove `i64` generation fix for elements as they only contain `reftype` and not `i64` * update wasmparser: 0.101.1 -> 0.103.0 See <https://github.com/bytecodealliance/wasm-tools/pull/957> for more information * update wasmparser: 0.103.0 -> 0.106.0 * update wasmparser: 0.106.0 -> 0.107.0
This commit is contained in:
@@ -107,8 +107,8 @@ fn write_table_list(wasm: &Module, w: &mut dyn Write) -> Result<()> {
|
||||
|
||||
for (i, table) in table.iter().enumerate() {
|
||||
let index = offset + i;
|
||||
let min = table.initial;
|
||||
let max = table.maximum.unwrap_or(0xFFFF);
|
||||
let min = table.ty.initial;
|
||||
let max = table.ty.maximum.unwrap_or(0xFFFF);
|
||||
|
||||
writeln!(
|
||||
w,
|
||||
@@ -155,6 +155,8 @@ fn write_element_list(list: &[Element], type_info: &TypeInfo, w: &mut dyn Write)
|
||||
unimplemented!("passive elements not supported")
|
||||
};
|
||||
|
||||
let index = index.unwrap_or(0);
|
||||
|
||||
writeln!(w, "\tdo")?;
|
||||
writeln!(w, "\t\tlocal target = TABLE_LIST[{index}].data")?;
|
||||
write!(w, "\t\tlocal offset = ")?;
|
||||
|
||||
Reference in New Issue
Block a user