use well-known operators instead of fancy literary ones

this is needed for MSVC
This commit is contained in:
Dimitri Stolnikov 2012-04-06 16:32:33 +02:00
parent 313334d54a
commit 43c59ad2b9
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ double meta_range_t::clip(double value, bool clip_step) const{
}
//in this range, clip here
if (value <= r.stop()){
if (not clip_step or r.step() == 0) return value;
if (! clip_step || r.step() == 0) return value;
return boost::math::round((value - r.start())/r.step())*r.step() + r.start();
}
//continue on to the next range