projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96ee90
)
Move cast to suppress warning.
author
Martin v. Löwis
<martin@v.loewis.de>
Thu, 16 Feb 2006 14:37:48 +0000
(14:37 +0000)
committer
Martin v. Löwis
<martin@v.loewis.de>
Thu, 16 Feb 2006 14:37:48 +0000
(14:37 +0000)
Python/marshal.c
patch
|
blob
|
history
diff --git
a/Python/marshal.c
b/Python/marshal.c
index e0f138de49baf3cdb31dd680dc622c24728db3cd..4e922dc838846c3402c8c3be2fffca8e0cd2ad8f 100644
(file)
--- 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);
}
}