mirror of
https://github.com/taglib/taglib.git
synced 2026-03-21 22:29:56 -04:00
Use a standard type rather than TagLib::ulong.
This won't break the ABI compatibility.
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user