From 6cc660f49a69a4c6c6ca246f5f1d767af9140ac6 Mon Sep 17 00:00:00 2001 From: Binrui Dong Date: Mon, 27 Jun 2022 15:54:04 +0800 Subject: [PATCH] Use std::fmod instead of std::fmodf --- src/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material.cpp b/src/material.cpp index 83d0006fe0260..8b085de3d55da 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -282,7 +282,7 @@ bool material_type::is_valid_thickness( float thickness ) const } // float calcs so rounding need to be mindful of - return std::fmodf( thickness, _sheet_thickness ) < .01; + return std::fmod( thickness, _sheet_thickness ) < .01f; } float material_type::thickness_multiple() const