Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9228837

Browse files
committed
Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
1 parent b042daa commit 9228837

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Core and Builtins
5252
Library
5353
-------
5454

55+
- Issue #18549: Eliminate dead code in socket_ntohl()
56+
5557
- Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()
5658

5759
- Issue #18513: Fix behaviour of cmath.rect w.r.t. signed zeros on OS X 10.8 +

Modules/socketmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4702,8 +4702,6 @@ socket_ntohl(PyObject *self, PyObject *arg)
47024702
return PyErr_Format(PyExc_TypeError,
47034703
"expected int/long, %s found",
47044704
Py_TYPE(arg)->tp_name);
4705-
if (x == (unsigned long) -1 && PyErr_Occurred())
4706-
return NULL;
47074705
return PyLong_FromUnsignedLong(ntohl(x));
47084706
}
47094707

0 commit comments

Comments
 (0)