mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
Move cast to suppress warning.
This commit is contained in:
parent
d96ee90993
commit
67baee6287
|
@ -181,9 +181,9 @@ w_object(PyObject *v, WFILE *p)
|
|||
else {
|
||||
char buf[256]; /* Plenty to format any double */
|
||||
PyFloat_AsReprString(buf, (PyFloatObject *)v);
|
||||
n = (int)strlen(buf);
|
||||
n = strlen(buf);
|
||||
w_byte(TYPE_FLOAT, p);
|
||||
w_byte(n, p);
|
||||
w_byte((int)n, p);
|
||||
w_string(buf, n, p);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue