From: Serhiy Storchaka Date: Mon, 16 Feb 2015 18:54:03 +0000 (+0200) Subject: Shoould be Py_MIN, not Py_MAX. X-Git-Tag: v3.5.0a2~133^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3584056ca58957a6adca060419e48a9488852550;p=python Shoould be Py_MIN, not Py_MAX. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 6d777d3f77..f5bade03cb 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