Commit 939412ea authored by Mateusz Łoskot's avatar Mateusz Łoskot

Add explicit cast of sqrt arguments to double

Fixes parts of #801
parent b35b3729
Pipeline #7563711 passed with stage
in 48 minutes and 36 seconds
......@@ -30,7 +30,7 @@ static int INTPOINT_dist(const void* a, const void* b, double* distance, void* u
int dx = p2->x - p1->x;
int dy = p2->y - p1->y;
*distance = sqrt(dx*dx + dy*dy);
*distance = sqrt(static_cast<double>(dx*dx) + dy*dy);
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment