Check needs extra paranthesis to aviod ambiguity.

Build fails with an ambiguity warning on x86_64 cross compile otherwise.
This commit is contained in:
Fredrik Holmqvist 2017-07-02 22:33:17 +02:00
parent 9439288b46
commit 4e219110d4

View File

@ -538,7 +538,7 @@ tcp_getsockopt(net_protocol* _protocol, int level, int option, void* value,
{
TCPEndpoint* protocol = (TCPEndpoint*)_protocol;
if (level == IPPROTO_TCP)
if ((level & LEVEL_MASK) == IPPROTO_TCP)
return protocol->GetOption(option, value, _length);
return protocol->next->module->getsockopt(protocol->next, level, option,