fix
This commit is contained in:
parent
18eb56d314
commit
46b975b8fb
|
@ -262,8 +262,8 @@ pub fn instantiate(m: &mut Module, cfg: &Cfg) -> anyhow::Result<()> {
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
let t = m.tables.push(TableData {
|
let t = m.tables.push(TableData {
|
||||||
ty: Type::FuncRef,
|
ty: Type::FuncRef,
|
||||||
initial: fs.len() as u32,
|
initial: fs.len() as u64,
|
||||||
max: Some(fs.len() as u32),
|
max: Some(fs.len() as u64),
|
||||||
func_elements: Some(fs.clone()),
|
func_elements: Some(fs.clone()),
|
||||||
});
|
});
|
||||||
if let ImportKind::Func(f) = i.kind {
|
if let ImportKind::Func(f) = i.kind {
|
||||||
|
|
Loading…
Reference in a new issue