Gentoo Archives: gentoo-commits

From: Slawek Lis <slis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/repsnapper/files/
Date: Mon, 28 Dec 2015 19:42:36
Message-Id: 1451331930.f152575b2fd5035de6a0ffa74076df784096c3d0.slis@gentoo
1 commit: f152575b2fd5035de6a0ffa74076df784096c3d0
2 Author: Slawomir Lis <slis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 19:44:11 2015 +0000
4 Commit: Slawek Lis <slis <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 19:45:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f152575b
7
8 fixed patch lost #569976, #569628
9
10 Package-Manager: portage-2.2.26
11
12 sci-misc/repsnapper/files/std-c11.patch | 31 +++++++++++++++++++++++++++++++
13 1 file changed, 31 insertions(+)
14
15 diff --git a/sci-misc/repsnapper/files/std-c11.patch b/sci-misc/repsnapper/files/std-c11.patch
16 new file mode 100644
17 index 0000000..a8ff67a
18 --- /dev/null
19 +++ b/sci-misc/repsnapper/files/std-c11.patch
20 @@ -0,0 +1,31 @@
21 +--- src/slicer/poly.cpp.orig 2015-12-28 07:54:32.774722105 +0100
22 ++++ src/slicer/poly.cpp 2015-12-28 07:54:41.188055896 +0100
23 +@@ -225,7 +225,7 @@
24 + // Start with first vertex as closest
25 + uint nindex = 0;
26 + mindist = (vertices[0]-p).squared_length();
27 +- if (isnan(mindist)) { // for infinity point p return point 0 and distance 0
28 ++ if (std::isnan(mindist)) { // for infinity point p return point 0 and distance 0
29 + mindist = 0.;
30 + return 0;
31 + }
32 +--- src/slicer/printlines.cpp.orig 2015-12-28 07:54:05.814720635 +0100
33 ++++ src/slicer/printlines.cpp 2015-12-28 07:54:19.821388065 +0100
34 +@@ -240,7 +240,7 @@
35 + if (abs(absolute_extrusion) < 0.00001)
36 + travel_speed = max(minspeed, speed); // in case speed is too low
37 +
38 +- if (!isnan(absolute_extrusion))
39 ++ if (!std::isnan(absolute_extrusion))
40 + // allowed to push/pull at arbitrary speed
41 + extrudedMaterial += absolute_extrusion;
42 + else
43 +@@ -335,7 +335,7 @@
44 + else
45 + factor = 1./newlines.size();
46 + newlines[i].absolute_extrusion *= factor;
47 +- assert(!isnan(newlines[i].absolute_extrusion));
48 ++ assert(!std::isnan(newlines[i].absolute_extrusion));
49 +
50 + }
51 + return newlines;