summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-08 18:28:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-08 18:28:06 (GMT)
commit207116b84c24ab58f6f95df059474605b2b06fb2 (patch)
tree88be6202e530cd4a0c5ea7b3f8db2bd65c289e2c
parent940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 (diff)
downloadcpython-207116b84c24ab58f6f95df059474605b2b06fb2.zip
cpython-207116b84c24ab58f6f95df059474605b2b06fb2.tar.gz
cpython-207116b84c24ab58f6f95df059474605b2b06fb2.tar.bz2
use Py_MAX
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 957a5f2..c1ba7ba 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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