Merge remote-tracking branch 'origin/feature/polymorphic-v2' into feature/polymorphic-v2

This commit is contained in:
losfair
2020-02-26 17:09:10 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ mod tests {
} }
} }
let expected = (0..=n as u64).fold(0u64, |a, b| a + b); let expected = (0..=n as u64).sum();
prev = Some((ptr, expected)) prev = Some((ptr, expected))
} }
} }

View File

@ -330,7 +330,7 @@ impl<'a> ErasedFunc<'a> {
Type::F32 => Value::F32(f32::from_bits(*args.offset(i as _) as u32)), Type::F32 => Value::F32(f32::from_bits(*args.offset(i as _) as u32)),
Type::F64 => Value::F64(f64::from_bits(*args.offset(i as _) as u64)), Type::F64 => Value::F64(f64::from_bits(*args.offset(i as _) as u64)),
Type::V128 => { Type::V128 => {
panic!("enter_host_polymorphic: 128-bit types are not supported") todo!("enter_host_polymorphic: 128-bit types are not supported")
} }
} }
}) })