forked from sdr/gr-osmosdr
use well-known operators instead of fancy literary ones
this is needed for MSVC
This commit is contained in:
parent
313334d54a
commit
43c59ad2b9
|
@ -145,7 +145,7 @@ double meta_range_t::clip(double value, bool clip_step) const{
|
||||||
}
|
}
|
||||||
//in this range, clip here
|
//in this range, clip here
|
||||||
if (value <= r.stop()){
|
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();
|
return boost::math::round((value - r.start())/r.step())*r.step() + r.start();
|
||||||
}
|
}
|
||||||
//continue on to the next range
|
//continue on to the next range
|
||||||
|
|
Loading…
Reference in New Issue