Skip to content

Commit

Permalink
Fixed an inconsistent exception in numth.cpp in Debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Dai committed Mar 17, 2022
1 parent 4813b07 commit 0d545af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/src/seal/util/numth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ namespace seal
}
#endif
vector<uint64_t> classes{};
for (uint64_t i = 0; i < modulus; i++)
classes.push_back(0);
for (uint64_t i = 1; i < modulus; i++)
{
if (gcd(i, modulus) > 1)
{
Expand Down

0 comments on commit 0d545af

Please sign in to comment.