summaryrefslogtreecommitdiffstatshomepage
path: root/lib/libm/kf_cos.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-03-31 14:48:08 +0200
committerDamien George <damien.p.george@gmail.com>2020-04-18 22:42:24 +1000
commitbcf01d1686a8fa6d257daea25ce0d7df6e4ad839 (patch)
tree2513c71e685ead21c6ca44a0432500ca75c424f8 /lib/libm/kf_cos.c
parentdc4d119d3d96799bf848c6488b2ac49b933ab7cb (diff)
downloadmicropython-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/kf_cos.c')
-rw-r--r--lib/libm/kf_cos.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libm/kf_cos.c b/lib/libm/kf_cos.c
index 691f9842fd..58ffc65861 100644
--- a/lib/libm/kf_cos.c
+++ b/lib/libm/kf_cos.c
@@ -29,13 +29,13 @@ static const float
#else
static float
#endif
-one = 1.0000000000e+00, /* 0x3f800000 */
-C1 = 4.1666667908e-02, /* 0x3d2aaaab */
-C2 = -1.3888889225e-03, /* 0xbab60b61 */
-C3 = 2.4801587642e-05, /* 0x37d00d01 */
-C4 = -2.7557314297e-07, /* 0xb493f27c */
-C5 = 2.0875723372e-09, /* 0x310f74f6 */
-C6 = -1.1359647598e-11; /* 0xad47d74e */
+one = 1.0000000000e+00f, /* 0x3f800000 */
+C1 = 4.1666667908e-02f, /* 0x3d2aaaab */
+C2 = -1.3888889225e-03f, /* 0xbab60b61 */
+C3 = 2.4801587642e-05f, /* 0x37d00d01 */
+C4 = -2.7557314297e-07f, /* 0xb493f27c */
+C5 = 2.0875723372e-09f, /* 0x310f74f6 */
+C6 = -1.1359647598e-11f; /* 0xad47d74e */
#ifdef __STDC__
float __kernel_cosf(float x, float y)