Skip to content

Commit

Permalink
fix a bug for C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
lwxxxxxxx committed Jan 23, 2025
1 parent 55226ed commit bdbeec5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libspu/mpc/swift/arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,11 @@ NdArrayRef TruncA::proc(KernelEvalContext* ctx, const NdArrayRef& x,
auto numel = x.numel();
auto a2p = A2P();

auto [r, rd] = TruncA::Trgen(ctx, static_cast<int64_t>(bits), field, numel);
auto trunc_pair =
TruncA::Trgen(ctx, static_cast<int64_t>(bits), field, numel);

auto r = trunc_pair.first;
auto rd = trunc_pair.second;

r.reshape(x.shape());
rd.reshape(x.shape());
Expand Down

0 comments on commit bdbeec5

Please # to comment.