mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Move cast to suppress warning.
This commit is contained in:
parent
d96ee90993
commit
67baee6287
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue