mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
Fix compilation warnings
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1019655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -137,7 +137,7 @@ void AttachedPictureFrame::parseFields(const ByteVector &data)
|
||||
|
||||
d->mimeType = readStringField(data, String::Latin1, &pos);
|
||||
/* Now we need at least two more bytes available */
|
||||
if (pos + 1 >= data.size()) {
|
||||
if (uint(pos) + 1 >= data.size()) {
|
||||
debug("Truncated picture frame.");
|
||||
return;
|
||||
}
|
||||
|
@ -394,8 +394,8 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
|
||||
// First step: Pages that contain the comment data
|
||||
|
||||
for(List<Page *>::ConstIterator it = pages.begin(); it != pages.end(); ++it) {
|
||||
const int index = (*it)->header()->pageSequenceNumber();
|
||||
if(index < static_cast<int>(d->pages.size())) {
|
||||
const unsigned int index = (*it)->header()->pageSequenceNumber();
|
||||
if(index < d->pages.size()) {
|
||||
delete d->pages[index];
|
||||
d->pages[index] = *it;
|
||||
}
|
||||
@ -411,8 +411,8 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
|
||||
// Second step: the renumbered pages
|
||||
|
||||
for(List<Page *>::ConstIterator it = renumberedPages.begin(); it != renumberedPages.end(); ++it) {
|
||||
const int index = (*it)->header()->pageSequenceNumber();
|
||||
if(index < static_cast<int>(d->pages.size())) {
|
||||
const unsigned int index = (*it)->header()->pageSequenceNumber();
|
||||
if(index < d->pages.size()) {
|
||||
delete d->pages[index];
|
||||
d->pages[index] = *it;
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ void RIFF::File::read()
|
||||
ByteVector chunkName = readBlock(4);
|
||||
uint chunkSize = readBlock(4).toUInt(bigEndian);
|
||||
|
||||
if(tell() + chunkSize > length()) {
|
||||
if(tell() + chunkSize > uint(length())) {
|
||||
// something wrong
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user