[Python-checkins] r45346 - python/trunk/Modules/stropmodule.c
martin.v.loewis
python-checkins at python.org
Thu Apr 13 09:34:10 CEST 2006
Author: martin.v.loewis
Date: Thu Apr 13 09:34:09 2006
New Revision: 45346
Modified:
python/trunk/Modules/stropmodule.c
Log:
Replace INT_MAX with PY_SSIZE_T_MAX.
Modified: python/trunk/Modules/stropmodule.c
==============================================================================
--- python/trunk/Modules/stropmodule.c (original)
+++ python/trunk/Modules/stropmodule.c Thu Apr 13 09:34:09 2006
@@ -333,7 +333,7 @@
{
char *s, *sub;
Py_ssize_t len, n, j;
- Py_ssize_t i = 0, last = INT_MAX;
+ Py_ssize_t i = 0, last = PY_SSIZE_T_MAX;
WARN;
if (!PyArg_ParseTuple(args, "t#t#|nn:rfind", &s, &len, &sub, &n, &i, &last))
@@ -647,7 +647,7 @@
{
char *s, *sub;
Py_ssize_t len, n;
- Py_ssize_t i = 0, last = INT_MAX;
+ Py_ssize_t i = 0, last = PY_SSIZE_T_MAX;
Py_ssize_t m, r;
WARN;
@@ -1078,7 +1078,7 @@
/* find length of output string */
nfound = mymemcnt(str, len, pat, pat_len);
if (count < 0)
- count = INT_MAX;
+ count = PY_SSIZE_T_MAX;
else if (nfound > count)
nfound = count;
if (nfound == 0)
More information about the Python-checkins
mailing list