[Python-checkins] cpython: use Py_MAX

benjamin.peterson python-checkins at python.org
Thu Sep 8 14:28:13 EDT 2016


https://hg.python.org/cpython/rev/5ffc6b528fb4
changeset:   103333:5ffc6b528fb4
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Sep 08 11:28:06 2016 -0700
summary:
  use Py_MAX

files:
  Modules/posixmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7550,7 +7550,7 @@
     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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list