summaryrefslogtreecommitdiff
path: root/games/flightgear-terragear/files/patch-tg_misc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'games/flightgear-terragear/files/patch-tg_misc.cxx')
-rw-r--r--games/flightgear-terragear/files/patch-tg_misc.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/flightgear-terragear/files/patch-tg_misc.cxx b/games/flightgear-terragear/files/patch-tg_misc.cxx
new file mode 100644
index 000000000000..ae18bc309501
--- /dev/null
+++ b/games/flightgear-terragear/files/patch-tg_misc.cxx
@@ -0,0 +1,20 @@
+--- src/Lib/terragear/tg_misc.cxx.orig 2017-10-07 06:58:20 UTC
++++ src/Lib/terragear/tg_misc.cxx
+@@ -112,8 +112,8 @@
+ ClipperLib::IntPoint min_pt, max_pt;
+ SGGeod min, max;
+
+- min_pt.X = min_pt.Y = LONG_LONG_MAX;
+- max_pt.X = max_pt.Y = LONG_LONG_MIN;
++ min_pt.X = min_pt.Y = LLONG_MAX;
++ max_pt.X = max_pt.Y = LLONG_MIN;
+
+ // for each polygon, we need to check the orientation, to set the hole flag...
+ for (unsigned int i=0; i<subject.size(); i++)
+@@ -377,4 +377,4 @@
+ // handle the no intersection case.
+ return false;
+ }
+-}
+\ No newline at end of file
++}