Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Sep 19, 2024
1 parent 5826062 commit cba7868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rust_bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub fn prove(
x_s.len(),
discriminant_size_bits,
num_iterations,
""
);
if array.data.is_null() {
return None;
Expand Down
2 changes: 1 addition & 1 deletion src/prover_slow.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ std::vector<uint8_t> ProveSlow(integer& D, form& x, uint64_t num_iterations, std
if ((num_iterations&0xffff)==0) {
struct stat buffer;

if (stat (shutdown_file_path.c_str(), &buffer) != 0)
if (stat (shutdown_file_path.c_str(), &buffer) == 0)
return {};
}
}
Expand Down

0 comments on commit cba7868

Please sign in to comment.