diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-11-23 07:34:58 -0800 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2014-11-24 18:35:55 +0100 |
commit | 16a386b0715ffc608263c3f5bdc681d2b62a8a51 (patch) | |
tree | 44f4f86c5b604738c71985aee3fed09fe6abebe5 | |
parent | f2b3363c119fe2de7253913f7a13fe1395d8d29f (diff) | |
download | qtmultimedia-16a386b0715ffc608263c3f5bdc681d2b62a8a51.tar.gz |
Fix Clang warning about comparison of different signs
Commit 4d35f66acf90e64e6c174bee9d809713d07fcd7e 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>
-rw-r--r-- | src/gsttools/qgstappsrc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsttools/qgstappsrc.cpp b/src/gsttools/qgstappsrc.cpp index 148366b3e..561a96fc8 100644 --- a/src/gsttools/qgstappsrc.cpp +++ b/src/gsttools/qgstappsrc.cpp @@ -141,7 +141,7 @@ void QGstAppSrc::pushDataToAppSrc() if (m_dataRequested && !m_enoughData) { qint64 size; - if (m_dataRequestSize == ~0) + if (m_dataRequestSize == ~0u) size = qMin(m_stream->bytesAvailable(), queueSize()); else size = qMin(m_stream->bytesAvailable(), (qint64)m_dataRequestSize); |