FEM: Fix multiplication result converted to larger type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user