Skip to content

Commit b6bd386

Browse files
skirpichevsobolevn
andauthored
Update Objects/longobject.c
Co-authored-by: sobolevn <[email protected]>
1 parent 4a3238d commit b6bd386

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/longobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6225,6 +6225,8 @@ int___round___impl(PyObject *self, PyObject *o_ndigits)
62256225
* definition of the _PyLong_Frexp() we have
62266226
* abs(self) < 10*10**(log10(2)*e) < 10**(e/3 + 1). */
62276227
(void)_PyLong_Frexp((PyLongObject *)self, &e);
6228+
assert(e >= 0);
6229+
assert(!PyErr_Occurred());
62286230

62296231
if (e/3 + 2 < n) {
62306232
Py_DECREF(ndigits);

0 commit comments

Comments
 (0)