mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue