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:
parent
7d9ca913ec
commit
47b9852bcc
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user