mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
use Py_MAX
This commit is contained in:
parent
940f33a50f
commit
207116b84c
1 changed files with 1 additions and 1 deletions
|
|
@ -7550,7 +7550,7 @@ os_closerange_impl(PyObject *module, int fd_low, int fd_high)
|
||||||
int i;
|
int i;
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
_Py_BEGIN_SUPPRESS_IPH
|
_Py_BEGIN_SUPPRESS_IPH
|
||||||
for (i = max(fd_low, 0); i < fd_high; i++)
|
for (i = Py_MAX(fd_low, 0); i < fd_high; i++)
|
||||||
close(i);
|
close(i);
|
||||||
_Py_END_SUPPRESS_IPH
|
_Py_END_SUPPRESS_IPH
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue