commit c2aeee9e8cbc3ff374fc644cd13d886e2425adc8 parent f53dee01af97e55b4db71be838f1dbe1a6e3c3d8 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Tue, 1 Oct 2019 15:02:14 +0200 Rm useless casts Diffstat:
| M | src/schiff_mesh.c | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/schiff_mesh.c b/src/schiff_mesh.c @@ -110,14 +110,14 @@ schiff_mesh_init_sphere FOR_EACH(itheta, 0, nthetas) { const double theta = -PI + (double)itheta * step_theta; darray_sincos_data_get(&sphere->thetas)[itheta].angle = theta; - darray_sincos_data_get(&sphere->thetas)[itheta].sinus = (float)sin(theta); - darray_sincos_data_get(&sphere->thetas)[itheta].cosine = (float)cos(theta); + darray_sincos_data_get(&sphere->thetas)[itheta].sinus = sin(theta); + darray_sincos_data_get(&sphere->thetas)[itheta].cosine = cos(theta); } FOR_EACH(iphi, 0, nphis-1) { const double phi = -PI/2 + (double)(iphi + 1) * step_phi; - darray_sincos_data_get(&sphere->phis)[iphi].angle = (float)phi; - darray_sincos_data_get(&sphere->phis)[iphi].sinus = (float)sin(phi); - darray_sincos_data_get(&sphere->phis)[iphi].cosine = (float)cos(phi); + darray_sincos_data_get(&sphere->phis)[iphi].angle = phi; + darray_sincos_data_get(&sphere->phis)[iphi].sinus = sin(phi); + darray_sincos_data_get(&sphere->phis)[iphi].cosine = cos(phi); } /* Build the contour vertices */