From 43c59ad2b95e1a2873a22e83b93d424e01fef14e Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Fri, 6 Apr 2012 16:32:33 +0200 Subject: [PATCH] use well-known operators instead of fancy literary ones this is needed for MSVC --- lib/osmosdr_ranges.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/osmosdr_ranges.cc b/lib/osmosdr_ranges.cc index 86a8d16..0b7ecbb 100644 --- a/lib/osmosdr_ranges.cc +++ b/lib/osmosdr_ranges.cc @@ -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