1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

Race condition in glScope traces processing: fixed compilation warning

This commit is contained in:
f4exb 2018-11-19 23:54:54 +01:00
parent 7d9ca913ec
commit 47b9852bcc

View File

@ -621,7 +621,7 @@ int ScopeVis::processTraces(const SampleVector::const_iterator& cbegin, const Sa
}
// switch to next buffer only if it is not being processed by the scope
if (m_glScope->getProcessingTraceIndex().load() != ((m_traces.currentBufferIndex() + 1) % 2)) {
if (m_glScope->getProcessingTraceIndex().load() != (((int) m_traces.currentBufferIndex() + 1) % 2)) {
m_traces.switchBuffer();
}