Fix Clang warning about comparison of different signs

Commit 4d35f66acf changed from -1 to ~0 because
ICC complained, but Clang still sees ~0 as int. So force to unsigned.

qgstappsrc.cpp:144:31: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]

Change-Id: I6b0fdf8dc5df157d8e184f22dba44660e60ca3b2
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
Thiago Macieira
2014-11-23 07:34:58 -08:00
committed by Yoann Lopes
parent f2b3363c11
commit 16a386b071

View File

@@ -141,7 +141,7 @@ void QGstAppSrc::pushDataToAppSrc()
if (m_dataRequested && !m_enoughData) { if (m_dataRequested && !m_enoughData) {
qint64 size; qint64 size;
if (m_dataRequestSize == ~0) if (m_dataRequestSize == ~0u)
size = qMin(m_stream->bytesAvailable(), queueSize()); size = qMin(m_stream->bytesAvailable(), queueSize());
else else
size = qMin(m_stream->bytesAvailable(), (qint64)m_dataRequestSize); size = qMin(m_stream->bytesAvailable(), (qint64)m_dataRequestSize);