Check needs extra paranthesis to aviod ambiguity.
Build fails with an ambiguity warning on x86_64 cross compile otherwise.
This commit is contained in:
parent
9439288b46
commit
4e219110d4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user