From 2f1058dc171ef8dc4035f5cd9135de7535ab6a80 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Jun 2018 17:04:09 +0200 Subject: Use correct data type for getsockopt UDT_RCVDATA --- src/DirectConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp index ede5251..713b3ac 100644 --- a/src/DirectConnection.cpp +++ b/src/DirectConnection.cpp @@ -231,7 +231,7 @@ namespace sibs usize receivedTotalSize = 0; while(receivedTotalSize < MAX_RECEIVED_DATA_SIZE) { - usize dataAvailableSize; + int dataAvailableSize; int receiveSizeDataTypeSize = sizeof(dataAvailableSize); if(UDT::getsockopt(socket, 0, UDT_RCVDATA, &dataAvailableSize, &receiveSizeDataTypeSize) == UDT::ERROR) { -- cgit v1.2.3