Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit b167e7b

Browse files
CblPOK-gitnkaskov
authored andcommitted
add static cast bool into bit builder component to fix CI on mac
1 parent 7b3dc30 commit b167e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nil/blueprint/components/algebra/fields/plonk/non_native/detail/bit_builder_component.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ namespace nil {
266266

267267
for (std::size_t i = 0; i < input_bits.size(); i++) {
268268
auto bit_pos = component.bit_position(start_row_index, padding + i);
269-
assignment.witness(component.W(bit_pos.second), bit_pos.first) = (input_bits[i]);
269+
assignment.witness(component.W(bit_pos.second), bit_pos.first) = static_cast<bool>(input_bits[i]);
270270
}
271271

272272
field_value_type sum = 0;
@@ -278,7 +278,7 @@ namespace nil {
278278
component.last_bit_gate_pos - padding + (i / 2) * component.bits_per_gate;
279279

280280
for (; bit_num < max_bit_num; bit_num++) {
281-
sum = 2 * sum + input_bits[bit_num];
281+
sum = 2 * sum + static_cast<bool>(input_bits[bit_num]);
282282
}
283283

284284
assignment.witness(component.W(sum_bit_pos.second), sum_bit_pos.first) = sum;

0 commit comments

Comments
 (0)