Revert to using new_len

This commit is contained in:
Felix Schütt
2022-10-11 11:51:22 +02:00
parent 9e4b00f86a
commit 332b8b1b71

View File

@@ -196,7 +196,7 @@ impl VMTable {
self.vec
.resize(usize::try_from(new_len).unwrap(), init_value.into());
self.table.minimum = self.vec.len(); // update table descriptor
self.table.minimum = new_len;
// update table definition
unsafe {