Przeglądaj źródła

Fixed writeRep.

Branimir Karadžić 10 lat temu
rodzic
commit
c5a6b08a1d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      include/bx/readerwriter.h

+ 1 - 1
include/bx/readerwriter.h

@@ -108,7 +108,7 @@ namespace bx
 		int32_t size = 0;
 		int32_t size = 0;
 		while (0 < _size)
 		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;
 			_size -= bytes;
 			_size -= bytes;
 		}
 		}