use Py_MAX

This commit is contained in:
Benjamin Peterson 2016-09-08 11:28:06 -07:00
parent 940f33a50f
commit 207116b84c
1 changed files with 1 additions and 1 deletions

View File

@ -7550,7 +7550,7 @@ os_closerange_impl(PyObject *module, int fd_low, int fd_high)
int i;
Py_BEGIN_ALLOW_THREADS
_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);
_Py_END_SUPPRESS_IPH
Py_END_ALLOW_THREADS