Skip to content
Snippets Groups Projects
Commit 21718048 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Lars Bilke
Browse files

[App] Explicitly use 64 bit int for shift.

Fixes Applications\FileIO\Gmsh\GMSHAdaptiveMeshDensity.cpp(118): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
parent eb799535
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,8 @@ void GMSHAdaptiveMeshDensity::getSteinerPoints (std::vector<GeoLib::Point*> & pn ...@@ -115,7 +115,8 @@ void GMSHAdaptiveMeshDensity::getSteinerPoints (std::vector<GeoLib::Point*> & pn
if ((*it)->getDepth() + additional_levels > max_depth) { if ((*it)->getDepth() + additional_levels > max_depth) {
additional_levels = max_depth - (*it)->getDepth(); additional_levels = max_depth - (*it)->getDepth();
} }
const std::size_t n_pnts_per_quad_dim = 1 << additional_levels; const std::size_t n_pnts_per_quad_dim = static_cast<std::size_t>(1)
<< additional_levels;
const double delta ((ur[0] - ll[0]) / (2 * n_pnts_per_quad_dim)); const double delta ((ur[0] - ll[0]) / (2 * n_pnts_per_quad_dim));
for (std::size_t i(0); i<n_pnts_per_quad_dim; i++) { for (std::size_t i(0); i<n_pnts_per_quad_dim; i++) {
for (std::size_t j(0); j<n_pnts_per_quad_dim; j++) { for (std::size_t j(0); j<n_pnts_per_quad_dim; j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment