Skip to content

Commit

Permalink
Use std::fmod instead of std::fmodf
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Jun 27, 2022
1 parent ae52078 commit 6cc660f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cc660f

Please sign in to comment.