1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

MSVC compatibility

This commit is contained in:
f4exb
2020-03-15 11:58:19 +01:00
parent f77f61a8a5
commit 298a5aadc5
10 changed files with 13 additions and 13 deletions
@@ -15,6 +15,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#include <algorithm>
#include "bladerf2/devicebladerf2shared.h"
#include "dsp/samplemififo.h"
@@ -144,7 +146,7 @@ void BladeRF2MIThread::callback(const qint16* buf, qint32 samplesPerChannel)
else
{
qWarning("BladeRF2MIThread::callback: unequal channel lengths: [0]=%d [1]=%d", lengths[0], lengths[1]);
m_sampleFifo->writeSync(vbegin, std::min(lengths[0], lengths[1]));
m_sampleFifo->writeSync(vbegin, (std::min)(lengths[0], lengths[1]));
}
}