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/kf_sin.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/kf_sin.c')
-rw-r--r-- | lib/libm/kf_sin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libm/kf_sin.c b/lib/libm/kf_sin.c index 07ea993446..5fb86fbe82 100644 --- a/lib/libm/kf_sin.c +++ b/lib/libm/kf_sin.c @@ -29,13 +29,13 @@ static const float #else static float #endif -half = 5.0000000000e-01,/* 0x3f000000 */ -S1 = -1.6666667163e-01, /* 0xbe2aaaab */ -S2 = 8.3333337680e-03, /* 0x3c088889 */ -S3 = -1.9841270114e-04, /* 0xb9500d01 */ -S4 = 2.7557314297e-06, /* 0x3638ef1b */ -S5 = -2.5050759689e-08, /* 0xb2d72f34 */ -S6 = 1.5896910177e-10; /* 0x2f2ec9d3 */ +half = 5.0000000000e-01f,/* 0x3f000000 */ +S1 = -1.6666667163e-01f, /* 0xbe2aaaab */ +S2 = 8.3333337680e-03f, /* 0x3c088889 */ +S3 = -1.9841270114e-04f, /* 0xb9500d01 */ +S4 = 2.7557314297e-06f, /* 0x3638ef1b */ +S5 = -2.5050759689e-08f, /* 0xb2d72f34 */ +S6 = 1.5896910177e-10f; /* 0x2f2ec9d3 */ #ifdef __STDC__ float __kernel_sinf(float x, float y, int iy) |