From 82dad3fb97194c8f17efb1a57a551ff0d790dfeb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 1 Apr 2019 20:43:42 +0200 Subject: [PATCH] Use proper type. --- common/TracySocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index 890901cb..9348ac21 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -152,10 +152,11 @@ int Socket::Send( const void* _buf, int len ) int Socket::GetSendBufSize() { int bufSize; - int sz = sizeof( bufSize ); #if defined _WIN32 || defined __CYGWIN__ + int sz = sizeof( bufSize ); getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, (char*)&bufSize, &sz ); #else + socklen_t sz = sizeof( bufSize ); getsockopt( m_sock, SOL_SOCKET, SO_SNDBUF, &bufSize, &sz ); #endif return bufSize;