diff options
author | Valerii Zapodovnikov <val.zapod.vz@gmail.com> | 2020-01-17 05:35:33 +0300 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2020-01-24 11:42:49 -0500 |
commit | 9b10306099aef951ed012d130920733ea00803d1 (patch) | |
tree | 85e977411d90ce48cda21000282fc08fb1e3abcd /gr-qtgui/lib/HistogramDisplayPlot.cc | |
parent | 9e0b4f7633cdcd2924c81640dbe2b25d41f74c6b (diff) |
gr-qtgui: always true check
index is unsigned int
Diffstat (limited to 'gr-qtgui/lib/HistogramDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/HistogramDisplayPlot.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-qtgui/lib/HistogramDisplayPlot.cc b/gr-qtgui/lib/HistogramDisplayPlot.cc index 17a9faca7b..ea3902a086 100644 --- a/gr-qtgui/lib/HistogramDisplayPlot.cc +++ b/gr-qtgui/lib/HistogramDisplayPlot.cc @@ -220,7 +220,7 @@ void HistogramDisplayPlot::plotNewData(const std::vector<double*> dataPoints, for (uint64_t point = 0; point < numDataPoints; point++) { index = boost::math::iround(1e-20 + (dataPoints[n][point] - d_left) / d_width); - if ((index >= 0) && (index < d_bins)) + if (index < d_bins) d_ydata[n][static_cast<unsigned int>(index)] += 1; } } |