Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Dec 20, 2023
1 parent 3bd33ea commit 77dae9e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/calcwit.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iomanip>
#include <iostream>
#include <sstream>
#include "calcwit.hpp"

Expand All @@ -9,7 +10,7 @@ extern void run(Circom_CalcWit* ctx);

void check(bool condition) {
if (!condition) {
fprintf(stderr, "assert failed\n");
std::cerr << "assert failed" << std::endl;
throw std::runtime_error("assert failed");
}
}
Expand All @@ -19,7 +20,7 @@ void checkWithMsg(bool condition, const char* failMsg) {
std::stringstream stream;
stream << "assert failed: "
<< failMsg;
fprintf(stderr, "%s\n", stream.str());
std::cerr << stream.str() << std::endl;
throw std::runtime_error(stream.str());
}
}
Expand Down Expand Up @@ -129,8 +130,6 @@ std::string Circom_CalcWit::getTrace(u64 id_cmp){

return Circom_CalcWit::getTrace(id_father) + "." + my_name;
}


}

std::string Circom_CalcWit::generate_position_array(uint* dimensions, uint size_dimensions, uint index){
Expand Down

0 comments on commit 77dae9e

Please sign in to comment.