Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error in RSS.inl #7

Open
DylanWangWQF opened this issue Oct 22, 2022 · 0 comments
Open

An error in RSS.inl #7

DylanWangWQF opened this issue Oct 22, 2022 · 0 comments

Comments

@DylanWangWQF
Copy link

Hi,

piranha/src/mpc/RSS.inl

Lines 123 to 142 in 8fd8219

void RSSBase<T, I>::setPublic(std::vector<double> &v) {
std::vector<T> shifted_vals;
for (double f : v) {
shifted_vals.push_back((T) (f * (1 << FLOAT_PRECISION)));
}
switch (partyNum) {
case PARTY_A:
thrust::copy(shifted_vals.begin(), shifted_vals.end(), shareA->begin());
shareB->zero();
break;
case PARTY_B:
shareA->zero();
shareB->zero();
case PARTY_C:
shareA->zero();
thrust::copy(shifted_vals.begin(), shifted_vals.end(), shareB->begin());
break;
}
};

In PARTY_B, we miss break which will cause errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant