Remove useless test (flowinfo is unsigned).

parent a07548e9
...@@ -1347,7 +1347,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args, ...@@ -1347,7 +1347,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
"getsockaddrarg: port must be 0-65535."); "getsockaddrarg: port must be 0-65535.");
return 0; return 0;
} }
if (flowinfo < 0 || flowinfo > 0xfffff) { if (flowinfo > 0xfffff) {
PyErr_SetString( PyErr_SetString(
PyExc_OverflowError, PyExc_OverflowError,
"getsockaddrarg: flowinfo must be 0-1048575."); "getsockaddrarg: flowinfo must be 0-1048575.");
...@@ -4129,7 +4129,7 @@ socket_getnameinfo(PyObject *self, PyObject *args) ...@@ -4129,7 +4129,7 @@ socket_getnameinfo(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(sa, "si|II", if (!PyArg_ParseTuple(sa, "si|II",
&hostp, &port, &flowinfo, &scope_id)) &hostp, &port, &flowinfo, &scope_id))
return NULL; return NULL;
if (flowinfo < 0 || flowinfo > 0xfffff) { if (flowinfo > 0xfffff) {
PyErr_SetString(PyExc_OverflowError, PyErr_SetString(PyExc_OverflowError,
"getsockaddrarg: flowinfo must be 0-1048575."); "getsockaddrarg: flowinfo must be 0-1048575.");
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment