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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Python/specialize.c
Co-authored-by: Tomas R. <[email protected]>
  • Loading branch information
Eclips4 and tomasr8 authored Jan 18, 2025
commit 850a862a7d86ceb1ae44d1400af5b90c24239af7
6 changes: 1 addition & 5 deletions Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -2433,11 +2433,7 @@ static int
float_compactlong_guard_true_div(PyObject *lhs, PyObject *rhs)
Comment thread
Eclips4 marked this conversation as resolved.
Outdated
{
return (
PyFloat_CheckExact(lhs) &&
PyLong_CheckExact(rhs) &&
_PyLong_IsCompact((PyLongObject *)rhs) &&
!PyLong_IsZero(rhs) &&
!isnan(PyFloat_AsDouble(lhs))
float_compactlong_guard(lhs, rhs) && !PyLong_IsZero(rhs)
);
}

Expand Down