Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
makxenov authored and nkaskov committed Apr 27, 2023
1 parent 548d712 commit 86cf62f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/CircuitCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function(add_circuit name)
endif()

add_custom_target(${name}
COMMAND $<TARGET_FILE:clang> -target assigner -Xclang -no-opaque-pointers -std=c++20
COMMAND $<TARGET_FILE:clang> -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
Expand Down
5 changes: 2 additions & 3 deletions examples/balance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ constexpr std::size_t VertexAmount = 5;
std::array<typename pallas::base_field_type::value_type, VertexAmount>
weights) {

std::array<typename pallas::base_field_type::value_type, 2> balance_point;
balance_point[0] = balance_point[1] = static_cast<pallas::base_field_type::value_type>(0);
std::array<typename pallas::base_field_type::value_type, 2> balance_point = {0,0};
typename pallas::base_field_type::value_type balance_weight = 0;

for (std::size_t VertexIndex = 0; VertexIndex < VertexAmount; VertexIndex++) {
Expand All @@ -22,4 +21,4 @@ constexpr std::size_t VertexAmount = 5;
balance_point[1] /= balance_weight;

return balance_point;
}
}

0 comments on commit 86cf62f

Please sign in to comment.