diff --git a/modules/juce_core/network/juce_Socket.cpp b/modules/juce_core/network/juce_Socket.cpp index a1b2b599aa..b4cb007e0a 100644 --- a/modules/juce_core/network/juce_Socket.cpp +++ b/modules/juce_core/network/juce_Socket.cpp @@ -85,10 +85,10 @@ namespace SocketHelpers static std::optional getBufferSize (SocketHandle handle, int property) { int result; - socklen_t outParamSize = sizeof (result); + auto outParamSize = (socklen_t) sizeof (result); if (getsockopt (handle, SOL_SOCKET, property, reinterpret_cast (&result), &outParamSize) != 0 - || outParamSize != sizeof (result)) + || outParamSize != (socklen_t) sizeof (result)) { return std::nullopt; }