Fix build.

This commit is contained in:
Stephen Chung
2023-03-08 22:03:03 +08:00
parent 8fe5bac3e9
commit 80917bfad2
3 changed files with 22 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
use crate::api::deprecated::deprecated_array_functions;
use crate::engine::OP_EQUALS;
use crate::eval::{calc_index, calc_offset_len, calc_array_sizes};
use crate::eval::{calc_index, calc_offset_len};
use crate::module::ModuleFlags;
use crate::plugin::*;
@@ -238,7 +238,7 @@ pub mod array_functions {
#[cfg(not(feature = "unchecked"))]
if _ctx.engine().max_array_size() > 0 {
let pad = len - array.len();
let (a, m, s) = calc_array_sizes(array);
let (a, m, s) = crate::eval::calc_array_sizes(array);
let (ax, mx, sx) = item.calc_data_sizes(true);
_ctx.engine()