From bdbf6c594292fd05fae10f94ec8d350199e981d1 Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 14 Oct 2010 07:15:20 +0000 Subject: [PATCH] Win32 compatibility --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index f8a32c78f..0214fa10e 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -2190,7 +2190,7 @@ bool StdMeshers_Quadrangle_2D::ComputeReduced (SMESH_Mesh & aMesh, // maximum number of bottom elements for "linear" simple reduce //int max_lin = ncol_top + npair_top * 2 * nrows; // 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) { int delta = ncol_bot - max_tree; for (int irow = 1; irow < nrows; irow++) { -- 2.39.2