summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-16 18:54:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-16 18:54:03 (GMT)
commit3584056ca58957a6adca060419e48a9488852550 (patch)
tree85452ed5ca552e4f41962446f98d6941cf04f9b4 /Modules
parent1a1ff29659f068659dea07f1bd67b8fd4331071c (diff)
downloadcpython-3584056ca58957a6adca060419e48a9488852550.zip
cpython-3584056ca58957a6adca060419e48a9488852550.tar.gz
cpython-3584056ca58957a6adca060419e48a9488852550.tar.bz2
Shoould be Py_MIN, not Py_MAX.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 6d777d3..f5bade0 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -34,7 +34,7 @@ Copyright (C) 1994 Steen Lumholt.
#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