Browse Source

Fix MinGW warning

develop
attila 1 year ago
parent
commit
d98a0bc233
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/network/juce_Socket.cpp

+ 2
- 2
modules/juce_core/network/juce_Socket.cpp View File

@@ -85,10 +85,10 @@ namespace SocketHelpers
static std::optional<int> 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<char*> (&result), &outParamSize) != 0
|| outParamSize != sizeof (result))
|| outParamSize != (socklen_t) sizeof (result))
{
return std::nullopt;
}


Loading…
Cancel
Save