Hi Chris,

Upstream already fixed this bug. Attached is a format-patch from the
upstream.
And I'll upload a new package to fix this bug very soon.

Yours,
Paul
-- 
                                PaulLiu (劉穎駿)
E-mail: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
From b7bf048e7a1b621274841ef40e017adabae5b8e3 Mon Sep 17 00:00:00 2001
From: hurzl <hu...@online.de>
Date: Fri, 20 Nov 2015 02:51:32 +0100
Subject: [PATCH] make compile with gcc5.2

according to @spuhler in #116
---
 src/slicer/poly.cpp       | 2 +-
 src/slicer/printlines.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/slicer/poly.cpp b/src/slicer/poly.cpp
index 23c0199..39175b4 100644
--- a/src/slicer/poly.cpp
+++ b/src/slicer/poly.cpp
@@ -225,7 +225,7 @@ uint Poly::nearestDistanceSqTo(const Vector2d &p, double &mindist) const
   // 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;
   }
diff --git a/src/slicer/printlines.cpp b/src/slicer/printlines.cpp
index 8663668..87556fc 100644
--- a/src/slicer/printlines.cpp
+++ b/src/slicer/printlines.cpp
@@ -240,7 +240,7 @@ int PLine3::getCommands(Vector3d &lastpos, vector<Command> &commands,
   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 @@ vector<PLine2> PLine2::division(const vector<Vector2d> &points) const
     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;
-- 
2.6.2

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to