summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawomir Lis <slis@gentoo.org>2015-12-28 20:44:11 +0100
committerSlawomir Lis <slis@gentoo.org>2015-12-28 20:45:30 +0100
commitf152575b2fd5035de6a0ffa74076df784096c3d0 (patch)
treed533f4b4c2f8bb1ff64ca5fbccf1cfcf4a283d6e /sci-misc
parentdev-libs/efl: update configure options to match latest upstream (diff)
downloadgentoo-f152575b2fd5035de6a0ffa74076df784096c3d0.tar.gz
gentoo-f152575b2fd5035de6a0ffa74076df784096c3d0.tar.bz2
gentoo-f152575b2fd5035de6a0ffa74076df784096c3d0.zip
fixed patch lost #569976, #569628
Package-Manager: portage-2.2.26
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/repsnapper/files/std-c11.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sci-misc/repsnapper/files/std-c11.patch b/sci-misc/repsnapper/files/std-c11.patch
new file mode 100644
index 000000000000..a8ff67ae3878
--- /dev/null
+++ b/sci-misc/repsnapper/files/std-c11.patch
@@ -0,0 +1,31 @@
+--- src/slicer/poly.cpp.orig 2015-12-28 07:54:32.774722105 +0100
++++ src/slicer/poly.cpp 2015-12-28 07:54:41.188055896 +0100
+@@ -225,7 +225,7 @@
+ // Start with first vertex as closest
+ uint nindex = 0;
+ mindist = (vertices[0]-p).squared_length();
+- if (isnan(mindist)) { // for infinity point p return point 0 and distance 0
++ if (std::isnan(mindist)) { // for infinity point p return point 0 and distance 0
+ mindist = 0.;
+ return 0;
+ }
+--- src/slicer/printlines.cpp.orig 2015-12-28 07:54:05.814720635 +0100
++++ src/slicer/printlines.cpp 2015-12-28 07:54:19.821388065 +0100
+@@ -240,7 +240,7 @@
+ if (abs(absolute_extrusion) < 0.00001)
+ travel_speed = max(minspeed, speed); // in case speed is too low
+
+- if (!isnan(absolute_extrusion))
++ if (!std::isnan(absolute_extrusion))
+ // allowed to push/pull at arbitrary speed
+ extrudedMaterial += absolute_extrusion;
+ else
+@@ -335,7 +335,7 @@
+ else
+ factor = 1./newlines.size();
+ newlines[i].absolute_extrusion *= factor;
+- assert(!isnan(newlines[i].absolute_extrusion));
++ assert(!std::isnan(newlines[i].absolute_extrusion));
+
+ }
+ return newlines;