Skip to content

Commit 850a862

Browse files
Eclips4tomasr8
andauthored
Update Python/specialize.c
Co-authored-by: Tomas R. <[email protected]>
1 parent 8363e9d commit 850a862

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Python/specialize.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,11 +2433,7 @@ static int
24332433
float_compactlong_guard_true_div(PyObject *lhs, PyObject *rhs)
24342434
{
24352435
return (
2436-
PyFloat_CheckExact(lhs) &&
2437-
PyLong_CheckExact(rhs) &&
2438-
_PyLong_IsCompact((PyLongObject *)rhs) &&
2439-
!PyLong_IsZero(rhs) &&
2440-
!isnan(PyFloat_AsDouble(lhs))
2436+
float_compactlong_guard(lhs, rhs) && !PyLong_IsZero(rhs)
24412437
);
24422438
}
24432439

0 commit comments

Comments
 (0)