1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix MinGW warning

This commit is contained in:
attila 2023-12-04 11:23:52 +01:00
parent c4c7c86324
commit d98a0bc233

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;
}