diff --git a/cmake/CircuitCompile.cmake b/cmake/CircuitCompile.cmake index 54407fe6..dd843ea5 100644 --- a/cmake/CircuitCompile.cmake +++ b/cmake/CircuitCompile.cmake @@ -65,7 +65,7 @@ function(add_circuit name) endif() add_custom_target(${name} - COMMAND $ -target assigner -Xclang -no-opaque-pointers -std=c++20 + COMMAND $ -target assigner -Xclang -no-opaque-pointers -Xclang -fpreserve-vec3-type -std=c++20 -D__ZKLLVM__ ${INCLUDE_DIRS_LIST} -emit-llvm -O1 ${format_option} -o ${binary_name} ${CIRCUIT_SOURCES} VERBATIM COMMAND_EXPAND_LISTS diff --git a/examples/balance.cpp b/examples/balance.cpp index b13920f9..7918a8ee 100644 --- a/examples/balance.cpp +++ b/examples/balance.cpp @@ -8,8 +8,7 @@ constexpr std::size_t VertexAmount = 5; std::array weights) { - std::array balance_point; - balance_point[0] = balance_point[1] = static_cast(0); + std::array balance_point = {0,0}; typename pallas::base_field_type::value_type balance_weight = 0; for (std::size_t VertexIndex = 0; VertexIndex < VertexAmount; VertexIndex++) { @@ -22,4 +21,4 @@ constexpr std::size_t VertexAmount = 5; balance_point[1] /= balance_weight; return balance_point; -} \ No newline at end of file +}