Use a standard type rather than TagLib::ulong.

This won't break the ABI compatibility.
This commit is contained in:
Tsuda Kageyu
2015-12-03 00:03:06 +09:00
parent 363c471a2d
commit 085a0ef298
18 changed files with 78 additions and 78 deletions

View File

@ -409,7 +409,7 @@ long MPEG::File::previousFrameOffset(long position)
ByteVector buffer;
while (position > 0) {
long size = ulong(position) < bufferSize() ? position : bufferSize();
long size = std::min<long>(position, bufferSize());
position -= size;
seek(position);

View File

@ -103,7 +103,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
// Xing header found.
if(data.size() < static_cast<ulong>(offset + 16)) {
if(data.size() < static_cast<unsigned long>(offset + 16)) {
debug("MPEG::XingHeader::parse() -- Xing header found but too short.");
return;
}
@ -127,7 +127,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
// VBRI header found.
if(data.size() < static_cast<ulong>(offset + 32)) {
if(data.size() < static_cast<unsigned long>(offset + 32)) {
debug("MPEG::XingHeader::parse() -- VBRI header found but too short.");
return;
}