Aggressive typecasting with specialization leads to silent wrong value output #9506
Open
2 tasks done
Labels
bug - incorrect behavior
Bugs: incorrect behavior
bug - numerically incorrect
Bugs: numerical behaviour is incorrect
Reporting a bug
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
i.e. it's possible to run as 'python bug.py'.
Following code implicitly type cast float64 to int32, so the data after dot is getting lost.
Instead I would expect to see exception based on the https://en.cppreference.com/w/cpp/language/implicit_conversion . It may be either exception, either warning, but never silent loss of data.
The text was updated successfully, but these errors were encountered: