Skip to content

Commit

Permalink
Use explicit code instead of macro in custom fcmp_pp serialization
Browse files Browse the repository at this point in the history
It's slightly different than other usages of the macro, so figured
it makes sense to just write out the code to do what I expect it
to do
  • Loading branch information
j-berman committed Aug 1, 2024
1 parent e40c5bb commit 95114f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ringct/rctTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ namespace rct {
ar.tag("fcmp_pp");
ar.begin_object();
const std::size_t proof_len = fcmp::get_fcmp_pp_len_from_n_inputs(inputs);
PREPARE_CUSTOM_VECTOR_SERIALIZATION(proof_len, fcmp_pp);
if (!typename Archive<W>::is_saving())
fcmp_pp.resize(proof_len);
if (fcmp_pp.size() != proof_len)
return false;
ar.serialize_blob(fcmp_pp.data(), proof_len);
Expand Down

0 comments on commit 95114f9

Please sign in to comment.