diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-06-30 01:42:17 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-06-30 02:39:17 -0700 |
commit | c1d91701943acfbd849fe2128faa4dc7eed7320e (patch) | |
tree | 58a7ae1f9d8801433ffa6b2f3482f8c1cdeadfe5 /core/io/tcp_server.cpp | |
parent | aceaf3953d5c251de75326058d23e44c6d116c7f (diff) | |
download | redot-engine-c1d91701943acfbd849fe2128faa4dc7eed7320e.tar.gz |
Network port comparison is always false
error: comparison is always false due to limited range of data type [-Werror=type-limits]
ERR_FAIL_COND_V_MSG(p_port < 0 || p_port > 65535, ERR_INVALID_PARAMETER, "The local port number must be between 0 and 65535 (inclusive).");
Diffstat (limited to 'core/io/tcp_server.cpp')
-rw-r--r-- | core/io/tcp_server.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/io/tcp_server.cpp b/core/io/tcp_server.cpp index b760a9ef80..5e0c0390f9 100644 --- a/core/io/tcp_server.cpp +++ b/core/io/tcp_server.cpp @@ -43,7 +43,6 @@ Error TCPServer::listen(uint16_t p_port, const IPAddress &p_bind_address) { ERR_FAIL_COND_V(!_sock.is_valid(), ERR_UNAVAILABLE); ERR_FAIL_COND_V(_sock->is_open(), ERR_ALREADY_IN_USE); ERR_FAIL_COND_V(!p_bind_address.is_valid() && !p_bind_address.is_wildcard(), ERR_INVALID_PARAMETER); - ERR_FAIL_COND_V_MSG(p_port < 0 || p_port > 65535, ERR_INVALID_PARAMETER, "The local port number must be between 0 and 65535 (inclusive)."); Error err; IP::Type ip_type = IP::TYPE_ANY; |