Fixed writeRep.

This commit is contained in:
Branimir Karadžić
2015-04-25 21:40:24 -07:00
parent 1fe1452548
commit c5a6b08a1d

View File

@@ -108,7 +108,7 @@ namespace bx
int32_t size = 0;
while (0 < _size)
{
int32_t bytes = write(_writer, temp, uint32_max(blockSize, _size) );
int32_t bytes = write(_writer, temp, uint32_min(blockSize, _size) );
size += bytes;
_size -= bytes;
}