summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib
diff options
context:
space:
mode:
authorTom Rondeau2011-10-15 16:32:35 -0400
committerTom Rondeau2011-10-15 16:32:35 -0400
commit32ef4974395913878f252434c21a63a259bb9b97 (patch)
tree419514e20012b996053d612542afd1996924ecc9 /gr-qtgui/lib
parent0d72c2c86f762279f944c576904d5c6af4895a7b (diff)
downloadgnuradio-32ef4974395913878f252434c21a63a259bb9b97.tar.gz
gnuradio-32ef4974395913878f252434c21a63a259bb9b97.tar.bz2
gnuradio-32ef4974395913878f252434c21a63a259bb9b97.zip
qtgui: avoids a simple warning.
Diffstat (limited to 'gr-qtgui/lib')
-rw-r--r--gr-qtgui/lib/spectrumdisplayform.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/lib/spectrumdisplayform.cc b/gr-qtgui/lib/spectrumdisplayform.cc
index 0e8594029..d3ca01483 100644
--- a/gr-qtgui/lib/spectrumdisplayform.cc
+++ b/gr-qtgui/lib/spectrumdisplayform.cc
@@ -466,7 +466,8 @@ SpectrumDisplayForm::_AverageHistory(const double* newBuffer)
if(_historyEntryCount > static_cast<int>(_historyVector->size())){
_historyEntryCount = _historyVector->size();
}
- _historyEntry = (++_historyEntry)%_historyVector->size();
+ _historyEntry += 1;
+ _historyEntry = _historyEntry % _historyVector->size();
// Total up and then average the values
double sum;