From 6848ed29f1c6a3a6914ef5df5c67d65b2c8132df Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Thu, 18 Aug 2022 14:57:46 +0200 Subject: [PATCH] truncation warning fix --- src/libslic3r/GCode/SeamPlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/SeamPlacer.cpp b/src/libslic3r/GCode/SeamPlacer.cpp index db11673803..c2f97ce480 100644 --- a/src/libslic3r/GCode/SeamPlacer.cpp +++ b/src/libslic3r/GCode/SeamPlacer.cpp @@ -966,7 +966,7 @@ void pick_random_seam_point(const std::vector &perimeter_points, std::vector viables; const Vec3f pseudornd_seed = perimeter_points[viable_example_index].position; - float rand = std::abs(sin(pseudornd_seed.dot(Vec3f(12.9898,78.233, 133.3333))) * 43758.5453); + float rand = std::abs(sin(pseudornd_seed.dot(Vec3f(12.9898f,78.233f, 133.3333f))) * 43758.5453f); rand = rand - (int) rand; for (size_t index = start_index; index < end_index; ++index) {