Merge ssize_t branch.

This commit is contained in:
Martin v. Löwis 2006-02-15 17:27:45 +00:00
parent 4482929734
commit 18e165558b
102 changed files with 2659 additions and 1677 deletions

View file

@ -87,7 +87,7 @@ PyFloat_FromString(PyObject *v, char **pend)
#ifdef Py_USING_UNICODE
char s_buffer[256]; /* for objects convertible to a char buffer */
#endif
int len;
Py_ssize_t len;
if (pend)
*pend = NULL;
@ -108,7 +108,7 @@ PyFloat_FromString(PyObject *v, char **pend)
NULL))
return NULL;
s = s_buffer;
len = (int)strlen(s);
len = strlen(s);
}
#endif
else if (PyObject_AsCharBuffer(v, &s, &len)) {