Skip to content

Commit

Permalink
Bug fix gcdext() in module mpyc/gfpx.
Browse files Browse the repository at this point in the history
  • Loading branch information
lschoe committed Jul 14, 2024
1 parent 5ebfa94 commit a4f87df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpyc/gfpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def _gcdext(cls, a, b):
t, t1 = t1, cls._sub(t, cls._mul(q, t1))

a, a1 = cls._monic(a, lc_pinv=True)
if a1 > 2:
if a1 >= 2:
for i in range(len(s)):
s[i] *= a1
s[i] %= p
Expand Down

0 comments on commit a4f87df

Please sign in to comment.