summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:48 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:48 (GMT)
commit67baee6287cbb6293ece36c25b05ae0270294544 (patch)
tree0f1bdb05b694bc8df9b7407324107be123ed1325 /Python/marshal.c
parentd96ee909934f3855135589e0e8d6ece1912c1f22 (diff)
downloadcpython-67baee6287cbb6293ece36c25b05ae0270294544.zip
cpython-67baee6287cbb6293ece36c25b05ae0270294544.tar.gz
cpython-67baee6287cbb6293ece36c25b05ae0270294544.tar.bz2
Move cast to suppress warning.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c4
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);
}
}