Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 77612:55849442d7a9 3.2
Remove useless test (flowinfo is unsigned).
| author | Charles-François Natali <neologix@free.fr> |
|---|---|
| date | Sat, 23 Jun 2012 10:17:05 +0200 |
| parents | cc346a672091 |
| children | 6ec9e646ffc7 9cf08b779954 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu Jun 21 20:34:09 2012 -0400 +++ b/Modules/socketmodule.c Sat Jun 23 10:17:05 2012 +0200 @@ -1347,7 +1347,7 @@ "getsockaddrarg: port must be 0-65535."); return 0; } - if (flowinfo < 0 || flowinfo > 0xfffff) { + if (flowinfo > 0xfffff) { PyErr_SetString( PyExc_OverflowError, "getsockaddrarg: flowinfo must be 0-1048575."); @@ -4129,7 +4129,7 @@ if (!PyArg_ParseTuple(sa, "si|II", &hostp, &port, &flowinfo, &scope_id)) return NULL; - if (flowinfo < 0 || flowinfo > 0xfffff) { + if (flowinfo > 0xfffff) { PyErr_SetString(PyExc_OverflowError, "getsockaddrarg: flowinfo must be 0-1048575."); return NULL;
