Cast to long

This commit is contained in:
Lukáš Lalinský 2012-07-14 21:21:03 +02:00
parent 61ed295af8
commit 8ff0feb28e

View File

@ -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);