mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Revert to using new_len
This commit is contained in:
@@ -196,7 +196,7 @@ impl VMTable {
|
|||||||
|
|
||||||
self.vec
|
self.vec
|
||||||
.resize(usize::try_from(new_len).unwrap(), init_value.into());
|
.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
|
// update table definition
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user