3 @@ -42,7 +42,8 @@ float minimum_distance(const Node *first, const Node *last,
5 const float a = last->x - first->x;
6 const float b = last->y - first->y;
7 - const float c = last->y * first->x - last->x * first->y;
8 + const float c = static_cast<double>(last->y * first->x)
9 + - static_cast<double>(last->x * first->y);
12 for (const Node *n = first; n != last; ++n) {