From 46b975b8fb4a267c69e8b0253338d2552bd7c72c Mon Sep 17 00:00:00 2001 From: Graham Kelly Date: Sun, 28 Jul 2024 13:05:47 -0400 Subject: [PATCH] fix --- pit-patch/src/lower.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pit-patch/src/lower.rs b/pit-patch/src/lower.rs index 63a20bf..77811aa 100644 --- a/pit-patch/src/lower.rs +++ b/pit-patch/src/lower.rs @@ -262,8 +262,8 @@ pub fn instantiate(m: &mut Module, cfg: &Cfg) -> anyhow::Result<()> { .collect::>(); let t = m.tables.push(TableData { ty: Type::FuncRef, - initial: fs.len() as u32, - max: Some(fs.len() as u32), + initial: fs.len() as u64, + max: Some(fs.len() as u64), func_elements: Some(fs.clone()), }); if let ImportKind::Func(f) = i.kind {