}
long APELocation;
- unsigned int APESize;
+ long APESize;
long ID3v1Location;
ID3v2::Header *ID3v2Header;
long ID3v2Location;
- unsigned int ID3v2Size;
+ long ID3v2Size;
TagUnion tag;
insert(data, d->APELocation, d->APESize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->APESize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->APESize);
d->APESize = data.size();
}
const ID3v2::FrameFactory *ID3v2FrameFactory;
long ID3v2Location;
- unsigned int ID3v2OriginalSize;
+ long ID3v2OriginalSize;
long ID3v1Location;
insert(data, d->flacStart, originalLength);
- d->streamStart += (data.size() - originalLength);
+ d->streamStart += (static_cast<long>(data.size()) - originalLength);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - originalLength);
+ d->ID3v1Location += (static_cast<long>(data.size()) - originalLength);
// Update ID3 tags
data = ID3v2Tag()->render();
insert(data, d->ID3v2Location, d->ID3v2OriginalSize);
- d->flacStart += (data.size() - d->ID3v2OriginalSize);
- d->streamStart += (data.size() - d->ID3v2OriginalSize);
+ d->flacStart += (static_cast<long>(data.size()) - d->ID3v2OriginalSize);
+ d->streamStart += (static_cast<long>(data.size()) - d->ID3v2OriginalSize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->ID3v2OriginalSize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->ID3v2OriginalSize);
d->ID3v2OriginalSize = data.size();
}
}
long APELocation;
- unsigned int APESize;
+ long APESize;
long ID3v1Location;
ID3v2::Header *ID3v2Header;
long ID3v2Location;
- unsigned int ID3v2Size;
+ long ID3v2Size;
TagUnion tag;
insert(data, d->APELocation, d->APESize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->APESize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->APESize);
d->APESize = data.size();
}
const ID3v2::FrameFactory *ID3v2FrameFactory;
long ID3v2Location;
- unsigned int ID3v2OriginalSize;
+ long ID3v2OriginalSize;
long APELocation;
- unsigned int APEOriginalSize;
+ long APEOriginalSize;
long ID3v1Location;
insert(data, d->APELocation, d->APEOriginalSize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->APEOriginalSize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->APEOriginalSize);
d->APEOriginalSize = data.size();
}
const ID3v2::FrameFactory *ID3v2FrameFactory;
long ID3v2Location;
- unsigned int ID3v2OriginalSize;
+ long ID3v2OriginalSize;
long ID3v1Location;
insert(data, d->ID3v2Location, d->ID3v2OriginalSize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->ID3v2OriginalSize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->ID3v2OriginalSize);
d->ID3v2OriginalSize = data.size();
}
}
long APELocation;
- unsigned int APESize;
+ long APESize;
long ID3v1Location;
insert(data, d->APELocation, d->APESize);
if(d->ID3v1Location >= 0)
- d->ID3v1Location += (data.size() - d->APESize);
+ d->ID3v1Location += (static_cast<long>(data.size()) - d->APESize);
d->APESize = data.size();
}