mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Clean up a warning on Win64. The downcast of the strlen size_t
return value to int is safe here because it previously checked that there will be no overflow.
This commit is contained in:
parent
29b83810bd
commit
a248fb605f
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ PyFloat_FromString(PyObject *v, char **pend)
|
|||
NULL))
|
||||
return NULL;
|
||||
s = s_buffer;
|
||||
len = strlen(s);
|
||||
len = (int)strlen(s);
|
||||
}
|
||||
else if (PyObject_AsCharBuffer(v, &s, &len)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue