diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:37:48 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:37:48 (GMT) |
commit | 67baee6287cbb6293ece36c25b05ae0270294544 (patch) | |
tree | 0f1bdb05b694bc8df9b7407324107be123ed1325 | |
parent | d96ee909934f3855135589e0e8d6ece1912c1f22 (diff) | |
download | cpython-67baee6287cbb6293ece36c25b05ae0270294544.zip cpython-67baee6287cbb6293ece36c25b05ae0270294544.tar.gz cpython-67baee6287cbb6293ece36c25b05ae0270294544.tar.bz2 |
Move cast to suppress warning.
-rw-r--r-- | Python/marshal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index e0f138d..4e922dc 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -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); } } |