From: Lukáš Lalinský Date: Sat, 14 Jul 2012 19:21:03 +0000 (+0200) Subject: Cast to long X-Git-Tag: v1.8beta~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ff0feb28ea4f31af216dc5de404ef94442f2c93;p=taglib Cast to long --- diff --git a/taglib/toolkit/tbytevectorstream.cpp b/taglib/toolkit/tbytevectorstream.cpp index a01da552..dc480a26 100644 --- a/taglib/toolkit/tbytevectorstream.cpp +++ b/taglib/toolkit/tbytevectorstream.cpp @@ -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);