Fix defect in ByteVectorStream::seek when Position==End.

This commit is contained in:
Kevin André
2016-09-15 16:30:16 +02:00
parent 1d3c95f692
commit 7e90313690
2 changed files with 15 additions and 1 deletions

View File

@ -137,7 +137,7 @@ void ByteVectorStream::seek(long offset, Position p)
d->position += offset;
break;
case End:
d->position = length() - offset;
d->position = length() + offset; // offset is expected to be negative
break;
}
}