From 89f16d83b61b5561a5d0d593fd5477a705e4884d Mon Sep 17 00:00:00 2001 From: CblPOK-git Date: Thu, 3 Aug 2023 13:33:27 +0000 Subject: [PATCH] add static cast bool into bit builder component to fix CI on mac --- .../fields/plonk/non_native/detail/bit_builder_component.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nil/blueprint/components/algebra/fields/plonk/non_native/detail/bit_builder_component.hpp b/include/nil/blueprint/components/algebra/fields/plonk/non_native/detail/bit_builder_component.hpp index 2c1f52f0b..37113a1ef 100644 --- a/include/nil/blueprint/components/algebra/fields/plonk/non_native/detail/bit_builder_component.hpp +++ b/include/nil/blueprint/components/algebra/fields/plonk/non_native/detail/bit_builder_component.hpp @@ -266,7 +266,7 @@ namespace nil { for (std::size_t i = 0; i < input_bits.size(); i++) { auto bit_pos = component.bit_position(start_row_index, padding + i); - assignment.witness(component.W(bit_pos.second), bit_pos.first) = (input_bits[i]); + assignment.witness(component.W(bit_pos.second), bit_pos.first) = static_cast(input_bits[i]); } field_value_type sum = 0; @@ -278,7 +278,7 @@ namespace nil { component.last_bit_gate_pos - padding + (i / 2) * component.bits_per_gate; for (; bit_num < max_bit_num; bit_num++) { - sum = 2 * sum + input_bits[bit_num]; + sum = 2 * sum + static_cast(input_bits[bit_num]); } assignment.witness(component.W(sum_bit_pos.second), sum_bit_pos.first) = sum;