FEM: Fix multiplication result converted to larger type

This commit is contained in:
Chris Hennes
2025-07-21 22:04:10 -05:00
parent 6c2617874a
commit 1237fbd391

View File

@@ -1552,7 +1552,8 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop,
double Yln = BndBox.LengthY() / NbrY;
double Zln = BndBox.LengthZ() / NbrZ;
std::vector<FemFaceGridItem> Grid(NbrX * NbrY * NbrZ);
std::vector<FemFaceGridItem> Grid(static_cast<size_t>(NbrX) * static_cast<size_t>(NbrY)
* static_cast<size_t>(NbrZ));
unsigned int iX = 0;