Fix a type mismatch for std::min()

This commit is contained in:
Jonathan Schleifer 2015-11-07 18:16:40 +01:00
parent 71e0324992
commit ed6dfed2a0
No known key found for this signature in database
GPG Key ID: 33E61C63EB4AE7B5

View File

@ -386,7 +386,8 @@ Stream::WriteAt(off_t pos, const void* _buffer, size_t* _length,
size_t inBlockOffset = offset % fVolume.BlockSize();
// write
size_t toWrite = std::min(fVolume.BlockSize() - inBlockOffset, length);
size_t toWrite = std::min((size_t)fVolume.BlockSize() - inBlockOffset,
length);
if (toWrite == (size_t)fVolume.BlockSize()) {
// write the whole block
ssize_t written = write_pos(fVolume.Device(),