cddb_server.cpp: fix clang warnings

Since 'port' is int32, use INT32_MAX and INT32_MIN
instead of LONG_MAX and LONG_MIN.

Signed-off-by: Dario Casalinuovo <[email protected]>
This commit is contained in:
Murai Takashi
2016-06-27 23:31:11 +02:00
committed by Dario Casalinuovo
parent 7627095fb0
commit fc1d8972ac
+1 -1
View File
@@ -312,7 +312,7 @@ CDDBServer::_ParseAddress(const BString& cddbServer)
char* firstInvalid;
errno = 0;
port = strtol(portString.String(), &firstInvalid, 10);
if ((errno == ERANGE && (port == LONG_MAX || port == LONG_MIN))
if ((errno == ERANGE && (port == INT32_MAX || port == INT32_MIN))
|| (errno != 0 && port == 0)) {
return B_ERROR;
}