aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-06-09 17:04:09 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commit2f1058dc171ef8dc4035f5cd9135de7535ab6a80 (patch)
treef18d88755a09d84a0effd8804a01ca2f182d03c2 /src
parent2b347b81b1b064b3450d4ac424923d0fb349c622 (diff)
Use correct data type for getsockopt UDT_RCVDATA
Diffstat (limited to 'src')
-rw-r--r--src/DirectConnection.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{