Change parameter name.

This commit is contained in:
Stephen Chung
2021-11-23 18:10:01 +08:00
parent 2e9807b172
commit 0c89a9c4c5
3 changed files with 9 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ mod array_functions {
}
#[rhai_fn(return_raw)]
pub fn pad(
_ctx: NativeCallContext,
ctx: NativeCallContext,
array: &mut Array,
len: INT,
item: Dynamic,
@@ -78,6 +78,8 @@ mod array_functions {
return Ok(());
}
let _ctx = ctx;
// Check if array will be over max size limit
#[cfg(not(feature = "unchecked"))]
if _ctx.engine().max_array_size() > 0 && (len as usize) > _ctx.engine().max_array_size() {