forked from M-Labs/nac3
1
0
Fork 0

core/codegen: fix bug in call_ceil function

This commit is contained in:
lyken 2024-08-07 16:40:55 +08:00
parent ac0d83ef98
commit 7e3d87f841
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ pub fn call_ceil<'ctx, G: CodeGenerator + ?Sized>(
ret_elem_ty,
None,
NDArrayValue::from_ptr_val(n, llvm_usize, None),
|generator, ctx, val| call_floor(generator, ctx, (elem_ty, val), ret_elem_ty),
|generator, ctx, val| call_ceil(generator, ctx, (elem_ty, val), ret_elem_ty),
)?;
ndarray.as_base_value().into()