python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / zinnia / patches / minimum-distance-precision.patch
blob6f9739e23588e2eb4b56ac367a1bc443fd8baabf
1 --- feature.cpp
2 +++ feature.cpp
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);
11 float max = -1.0;
12 for (const Node *n = first; n != last; ++n) {