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:
parent
c4c7c86324
commit
d98a0bc233
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue