diff Python/modsupport.c @ 37673:606818c33e50 legacy-trunk

Replace INT_MAX with PY_SSIZE_T_MAX.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 13 Apr 2006 07:52:27 +0000
parents 03894a7a32ec
children 9b22d8b7bcaa
line wrap: on
line diff
--- a/Python/modsupport.c	Thu Apr 13 07:37:25 2006 +0000
+++ b/Python/modsupport.c	Thu Apr 13 07:52:27 2006 +0000
@@ -407,7 +407,7 @@
 			else {
 				if (n < 0) {
 					size_t m = strlen(str);
-					if (m > INT_MAX) {
+					if (m > PY_SSIZE_T_MAX) {
 						PyErr_SetString(PyExc_OverflowError,
 							"string too long for Python string");
 						return NULL;