diff options
author | Hoernchen <la@tfc-server.de> | 2013-08-07 18:23:53 +0200 |
---|---|---|
committer | Hoernchen <la@tfc-server.de> | 2013-08-07 18:28:03 +0200 |
commit | 37e6f6ff29f34d7dda7450ed41ef677d7a083eb5 (patch) | |
tree | 8c591a4fbb0b8a86f5715ba5c63764826872adba /sdrbase/dsp | |
parent | f2c767d9f0841a549ab9e80e018adfc07c86d9a6 (diff) |
fix signedness
Diffstat (limited to 'sdrbase/dsp')
-rw-r--r-- | sdrbase/dsp/scopevis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdrbase/dsp/scopevis.cpp b/sdrbase/dsp/scopevis.cpp index 7a94130..70adf8b 100644 --- a/sdrbase/dsp/scopevis.cpp +++ b/sdrbase/dsp/scopevis.cpp @@ -36,7 +36,7 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter } if(m_triggerState == Triggered) { int count = end - begin; - if(count > m_trace.size() - m_fill) + if(count > (int)(m_trace.size() - m_fill)) count = m_trace.size() - m_fill; std::vector<Complex>::iterator it = m_trace.begin() + m_fill; for(int i = 0; i < count; ++i) { @@ -71,7 +71,7 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter } if(m_triggerState == Triggered) { int count = end - begin; - if(count > m_trace.size() - m_fill) + if(count > (int)(m_trace.size() - m_fill)) count = m_trace.size() - m_fill; std::vector<Complex>::iterator it = m_trace.begin() + m_fill; for(int i = 0; i < count; ++i) { @@ -96,7 +96,7 @@ void ScopeVis::feed(SampleVector::const_iterator begin, SampleVector::const_iter } } else { int count = end - begin; - if(count > m_trace.size() - m_fill) + if(count > (int)(m_trace.size() - m_fill)) count = m_trace.size() - m_fill; std::vector<Complex>::iterator it = m_trace.begin() + m_fill; for(int i = 0; i < count; ++i) { |