diff options
author | stijn <stijn@ignitron.net> | 2020-03-31 14:48:08 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-04-18 22:42:24 +1000 |
commit | bcf01d1686a8fa6d257daea25ce0d7df6e4ad839 (patch) | |
tree | 2513c71e685ead21c6ca44a0432500ca75c424f8 /lib/libm/atan2f.c | |
parent | dc4d119d3d96799bf848c6488b2ac49b933ab7cb (diff) | |
download | micropython-bcf01d1686a8fa6d257daea25ce0d7df6e4ad839.tar.gz micropython-bcf01d1686a8fa6d257daea25ce0d7df6e4ad839.zip |
all: Fix implicit conversion from double to float.
These are found when building with -Wfloat-conversion.
Diffstat (limited to 'lib/libm/atan2f.c')
-rw-r--r-- | lib/libm/atan2f.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/atan2f.c b/lib/libm/atan2f.c index 03d000c9e1..dcbaf821b5 100644 --- a/lib/libm/atan2f.c +++ b/lib/libm/atan2f.c @@ -22,8 +22,8 @@ #include "libm.h" static const float -pi = 3.1415927410e+00, /* 0x40490fdb */ -pi_lo = -8.7422776573e-08; /* 0xb3bbbd2e */ +pi = 3.1415927410e+00f, /* 0x40490fdb */ +pi_lo = -8.7422776573e-08f; /* 0xb3bbbd2e */ float atan2f(float y, float x) { |