Skip to content
Snippets Groups Projects
Commit 91c98275 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

GEO: Fix double promotion warning

parent 340432e2
No related branches found
No related tags found
No related merge requests found
......@@ -178,8 +178,8 @@ __EXPORT int map_projection_reproject(const struct map_projection_reference_s *r
return -1;
}
double x_rad = x / CONSTANTS_RADIUS_OF_EARTH;
double y_rad = y / CONSTANTS_RADIUS_OF_EARTH;
double x_rad = (double)x / CONSTANTS_RADIUS_OF_EARTH;
double y_rad = (double)y / CONSTANTS_RADIUS_OF_EARTH;
double c = sqrtf(x_rad * x_rad + y_rad * y_rad);
double sin_c = sin(c);
double cos_c = cos(c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment