-
-
Notifications
You must be signed in to change notification settings - Fork 659
Coerce int
to ZZ
for lift_x
method
#40772
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
base: develop
Are you sure you want to change the base?
Conversation
Currently there is a call to `x.parent()` which crashes for `x` of type `int`, but I think it should silently coerce to `ZZ`
Documentation preview for this PR (built with commit 33c5ebc; changes) is ready! 🎉 |
Use hopefully it's not slower. (speaking of which… |
What's the benefit of this? There's already the later lines which handle coercion between the parent of x and the ring of the curve -- this commit was to fix the issue with int especially. Are you suggesting to change more of the coercion here? |
|
Oh thanks. I understand now |
Currently there is a call to `x.parent()` which crashes for `x` of type `int`, but I think it should silently coerce to `ZZ` URL: sagemath#40772 Reported by: Giacomo Pope Reviewer(s):
Currently there is a call to
x.parent()
which crashes forx
of typeint
, but I think it should silently coerce toZZ