-
Notifications
You must be signed in to change notification settings - Fork 28
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
pow(int, int, fmpz)
is always 1
#92
Comments
Looks like the code here should be checking the type of python-flint/src/flint/types/fmpz.pyx Lines 362 to 371 in 98c2883
I hadn't contemplated that __pow__(s, t, m) might be called with s not being an fmpz . At this line s will be an int (PyLong ):python-flint/src/flint/types/fmpz.pyx Line 405 in 98c2883
Presumably the bytes there look like a 1 as an fmpz_t. The fix is that the s argument should be handled in the same way as the t argument. |
Thanks for the bug report. This will be fixed in the next release. |
Thanks for the correction. |
In
python-flint==0.4.4
.The text was updated successfully, but these errors were encountered: