mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 00:58:12 -04:00
Cast to long
This commit is contained in:
parent
61ed295af8
commit
8ff0feb28e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user