From 6aec1c4b5f6f61461700022afa47f6bbd3450986 Mon Sep 17 00:00:00 2001 From: losfair Date: Fri, 17 May 2019 01:33:33 +0800 Subject: [PATCH] Use `INTERNALS_SIZE` --- lib/runtime-core/src/backing.rs | 2 +- lib/runtime-core/src/vm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime-core/src/backing.rs b/lib/runtime-core/src/backing.rs index cef525f2c..2078837b0 100644 --- a/lib/runtime-core/src/backing.rs +++ b/lib/runtime-core/src/backing.rs @@ -79,7 +79,7 @@ impl LocalBacking { dynamic_sigindices, local_functions, - internals: Internals([0; 256]), + internals: Internals([0; INTERNALS_SIZE]), } } diff --git a/lib/runtime-core/src/vm.rs b/lib/runtime-core/src/vm.rs index 2d801b9cc..34ce7ed0a 100644 --- a/lib/runtime-core/src/vm.rs +++ b/lib/runtime-core/src/vm.rs @@ -700,7 +700,7 @@ mod vm_ctx_tests { dynamic_sigindices: Map::new().into_boxed_map(), local_functions: Map::new().into_boxed_map(), - internals: crate::backing::Internals([0; 256]), + internals: crate::backing::Internals([0; crate::backing::INTERNALS_SIZE]), }; let mut import_backing = ImportBacking { memories: Map::new().into_boxed_map(),