diff --git a/src/Lib/Geometry/point3d.hxx b/src/Lib/Geometry/point3d.hxx index eb3c9a35..eaedec29 100644 --- a/src/Lib/Geometry/point3d.hxx +++ b/src/Lib/Geometry/point3d.hxx @@ -421,7 +421,7 @@ inline bool Point3D::IsEqual2D(const Point3D& a) const inline bool Point3D::HasElevation() const { - return fabs( n[PZ] + 9999.0 > fgPoint3_Epsilon ); + return ( fabs( n[PZ] + 9999.0 ) > fgPoint3_Epsilon ); } diff --git a/src/Lib/Geometry/util.cxx b/src/Lib/Geometry/util.cxx index 0c7f3427..5b00b8c2 100644 --- a/src/Lib/Geometry/util.cxx +++ b/src/Lib/Geometry/util.cxx @@ -503,7 +503,7 @@ makePolygonsTP (const Line &line, double width, poly_list& polys, texparams_list tp.set_minv(last_end_v); tps.push_back(tp); - last_end_v = 1.0f - (fmod( (dist - last_end_v), 1.0f )); + last_end_v = 1.0f - (fmod( (double)(dist - last_end_v), (double)1.0f )); } prev_outer = cur_outer;