diff options
author | Eckhart Koppen <eckhart.koppen@nokia.com> | 2011-02-16 15:34:00 (GMT) |
---|---|---|
committer | Eckhart Koppen <eckhart.koppen@nokia.com> | 2011-02-16 15:34:00 (GMT) |
commit | 48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0 (patch) | |
tree | f6bfb9b3763195f24702203859d297e6dd56dcd8 /src/multimedia | |
parent | 899094da212e5bb1c3b9bce03b6c91d60cbdd13f (diff) | |
download | Qt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.zip Qt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.tar.gz Qt-48e7ac0eee8beb9d2c597ff5fa3c913d56ffb9b0.tar.bz2 |
Made Q_ASSERT meaningful again
m_bytesPadding is an unsigned integer, assert would never have been
triggered.
Reviewed-by: TrustMe
Diffstat (limited to 'src/multimedia')
-rw-r--r-- | src/multimedia/audio/qaudiooutput_symbian_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiooutput_symbian_p.cpp b/src/multimedia/audio/qaudiooutput_symbian_p.cpp index ea7cd9f..5db7099 100644 --- a/src/multimedia/audio/qaudiooutput_symbian_p.cpp +++ b/src/multimedia/audio/qaudiooutput_symbian_p.cpp @@ -436,8 +436,8 @@ void QAudioOutputPrivate::writePaddingData() unsigned char *ptr = const_cast<unsigned char*>(outputBuffer.Ptr()); Mem::FillZ(ptr, paddingBytes); outputBuffer.SetLength(outputBuffer.Length() + paddingBytes); + Q_ASSERT(m_bytesPadding >= paddingBytes); m_bytesPadding -= paddingBytes; - Q_ASSERT(m_bytesPadding >= 0); if (m_pullMode && m_source->atEnd()) lastBufferFilled(); |