[Python-checkins] cpython (3.4): Shoould be Py_MIN, not Py_MAX.

serhiy.storchaka python-checkins at python.org
Mon Feb 16 20:14:27 CET 2015


https://hg.python.org/cpython/rev/b139f9d44a20
changeset: 94654:b139f9d44a20
branch: 3.4
parent: 94651:036a2aceae93
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Feb 16 20:54:03 2015 +0200
summary:
 Shoould be Py_MIN, not Py_MAX.
files:
 Modules/_tkinter.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -34,7 +34,7 @@
 #endif
 
 #define CHECK_SIZE(size, elemsize) \
- ((size_t)(size) <= Py_MAX((size_t)INT_MAX, UINT_MAX / (size_t)(elemsize)))
+ ((size_t)(size) <= Py_MIN((size_t)INT_MAX, UINT_MAX / (size_t)(elemsize)))
 
 /* Starting with Tcl 8.4, many APIs offer const-correctness. Unfortunately,
 making _tkinter correct for this API means to break earlier
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /