From 7e3d87f841af7b1c50944283b374ea3b655331f4 Mon Sep 17 00:00:00 2001 From: lyken Date: Wed, 7 Aug 2024 16:40:55 +0800 Subject: [PATCH] core/codegen: fix bug in call_ceil function --- nac3core/src/codegen/builtin_fns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/builtin_fns.rs b/nac3core/src/codegen/builtin_fns.rs index afdb4301..311fd358 100644 --- a/nac3core/src/codegen/builtin_fns.rs +++ b/nac3core/src/codegen/builtin_fns.rs @@ -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()