From 06e2e1e02fdc93eb00f6cf0d532ffc2943feaf06 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 10 Nov 2010 22:47:45 -0800 Subject: uhd: made unit test for meta range and fixed bug --- host/include/uhd/types/ranges.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/types/ranges.ipp b/host/include/uhd/types/ranges.ipp index 7fd1bf2eb..8b602a24d 100644 --- a/host/include/uhd/types/ranges.ipp +++ b/host/include/uhd/types/ranges.ipp @@ -130,10 +130,10 @@ namespace uhd{ range_t last = this->front(); BOOST_FOREACH(const range_t &r, (*this)){ //steps at each range - if (r.step() != T(0)) non_zero_steps.push_back(r.step()); + if (r.step() > T(0)) non_zero_steps.push_back(r.step()); //and steps in-between ranges T ibtw_step = r.start() - last.stop(); - if (ibtw_step != T(0)) non_zero_steps.push_back(ibtw_step); + if (ibtw_step > T(0)) non_zero_steps.push_back(ibtw_step); //store ref to last last = r; } -- cgit v1.2.3