Skip to content

Commit

Permalink
Fix msb_s crash when input is bshr (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Feb 27, 2024
1 parent d8a65d1 commit e7eecee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libspu/mpc/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Value msb_s(SPUContext* ctx, const Value& x) {
TRY_DISPATCH(ctx, x);

// TODO: this is buggy.
const auto field = x.storage_type().as<Ring2k>()->field();
const auto field = ctx->getField();

if (ctx->hasKernel("msb_a2b")) {
if (IsB(x)) {
Expand Down

0 comments on commit e7eecee

Please sign in to comment.