Skip to content

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jan 10, 2024
1 parent a7049b2 commit 753d766
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,11 +759,8 @@ m_log10(double x)
static PyObject *
math_gcd(PyObject *module, PyObject * const *args, Py_ssize_t nargs)
{
// Fast-path for the common case: avoid calling _PyNumber_Index()
// and the loop.
if (nargs == 2
&& PyLong_CheckExact(args[0])
&& PyLong_CheckExact(args[1]))
// Fast-path for the common case: gcd(int, int)
if (nargs == 2 && PyLong_CheckExact(args[0]) && PyLong_CheckExact(args[1]))
{
return _PyLong_GCD(args[0], args[1]);
}
Expand Down

0 comments on commit 753d766

Please sign in to comment.