Commit 2ac81896 authored by Sebastian Eibl's avatar Sebastian Eibl

fixed msvc warning

parent 0fbe04af
......@@ -54,7 +54,12 @@ void sortParticleStorage( data::ParticleStorage& ps,
}
if( algorithm == "hilbert" )
{
sorting::HilbertCompareFunctor hilbert(domain, 1ul << math::uintMSBPosition(cells));
auto tmp = uint_t(1) << math::uintMSBPosition(cells);
if (tmp!=cells)
{
tmp <<= 1;
}
sorting::HilbertCompareFunctor hilbert(domain, tmp);
ps.sort(hilbert);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment