Win32 compatibility

This commit is contained in:
ana 2010-10-14 07:15:20 +00:00
parent 5c7ff1a389
commit bdbf6c5942

View File

@ -2190,7 +2190,7 @@ bool StdMeshers_Quadrangle_2D::ComputeReduced (SMESH_Mesh & aMesh,
// maximum number of bottom elements for "linear" simple reduce // maximum number of bottom elements for "linear" simple reduce
//int max_lin = ncol_top + npair_top * 2 * nrows; //int max_lin = ncol_top + npair_top * 2 * nrows;
// maximum number of bottom elements for "tree" simple reduce // maximum number of bottom elements for "tree" simple reduce
int max_tree = npair_top * pow(2, nrows + 1); int max_tree = npair_top * pow(2.0, nrows + 1);
if (ncol_top > npair_top * 2) { if (ncol_top > npair_top * 2) {
int delta = ncol_bot - max_tree; int delta = ncol_bot - max_tree;
for (int irow = 1; irow < nrows; irow++) { for (int irow = 1; irow < nrows; irow++) {