-
Notifications
You must be signed in to change notification settings - Fork 104
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
Epsilon double promotion warning/error. #18
Comments
I think this has been fixed in the testing branch. (All occurrences of fabs have been replaced by MICROPY_FLOAT_C_FUN(fabs). This is the proper way of handling this issue, because the definition of |
Yes this particular issue is fixed in testing, but in the testing branch numerical.c has other issues:
Including stdio.h and using %zu fixes it. Can the array fixes be merged in master ? I don't want to have to fork and maintain this repo. |
This printout was there for debugging purposes, and is not needed at all. I have removed it, and pushed the fix to master. Let me know if it still doesn't work. (I could compile it for the unix port.) |
It builds now, thanks for fixing it! |
MICROPY_FLOAT_IMPL_FLOAT
turns on-Wdouble-promotion
and-fsingle-precision-constant
which causes epsilon literal to be float and an implicit conversion from 'float' to 'double' (to match fabs) warning/error. Maybe fabsf should be used instead...The text was updated successfully, but these errors were encountered: