mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Cast to long
This commit is contained in:
@ -81,7 +81,7 @@ ByteVector ByteVectorStream::readBlock(ulong length)
|
||||
void ByteVectorStream::writeBlock(const ByteVector &data)
|
||||
{
|
||||
uint size = data.size();
|
||||
if(d->position + size > length()) {
|
||||
if(long(d->position + size) > length()) {
|
||||
truncate(d->position + size);
|
||||
}
|
||||
memcpy(d->data.data() + d->position, data.data(), size);
|
||||
|
Reference in New Issue
Block a user