From c21f7e86ec911acb13c32d55d49b528e66330010 Mon Sep 17 00:00:00 2001 From: Bourgerie Quentin Date: Tue, 2 Jan 2024 16:35:53 +0100 Subject: [PATCH] fix(backend/cpu): Fix the size of the expanded lut in woppbs case of poly size > lut size --- backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs b/backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs index 46973ba302..055a949c76 100644 --- a/backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs +++ b/backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs @@ -319,10 +319,8 @@ pub unsafe extern "C" fn concrete_cpu_circuit_bootstrap_boolean_vertical_packing let mut lut_container = slice::from_raw_parts(lut, lut_size * lut_count); let mut expanded_luts: Vec = vec![ - 0_u64, - (fpksk_output_polynomial_size * lut_count) - .try_into() - .unwrap(), + 0_u64; + fpksk_output_polynomial_size * lut_count ]; if lut_size < fpksk_output_polynomial_size {