serge-sans-paille / pythran

Ahead of Time compiler for numeric kernels
https://pythran.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.01k stars 193 forks source link

Make sure an array of float32 added to a float64 scalar generates an … #2092

Closed serge-sans-paille closed 1 year ago

serge-sans-paille commented 1 year ago

…array of float32

There's a dynamic choice to be made here, and we choose the most conservative one that does not require upcasting every element of the array.

Fix #2090