FreeCAD: Compiler warning fixes

This commit is contained in:
Chris Hennes
2025-03-12 23:16:43 -05:00
committed by Kacper Donat
parent b170b8e27c
commit 21c07cabc5
15 changed files with 32 additions and 24 deletions

View File

@@ -145,7 +145,7 @@ inline T toDegrees(T r)
inline float fromPercent(const long value)
{
return std::roundf(value) / 100.0F;
return std::roundf(static_cast<float>(value)) / 100.0F;
}
inline long toPercent(float value)