Skip to content

Conversation

MaanasArora
Copy link
Contributor

Fixes #29182.

Adds a promoter for first argument PyArray_PyLongDType to ldexp. It casts straight to double, not sure if that is more arbitrary than needed.

Thanks for reviewing!

@mattip
Copy link
Member

mattip commented Aug 20, 2025

What will happen with complex input?

@MaanasArora
Copy link
Contributor Author

@mattip this only promotes integer inputs (Python scalar integer, actually), so the rest would stay the same?

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

Successfully merging this pull request may close these issues.

BUG: incorrect promotion for Python integer inputs in ldexp
2 participants