Skip to content

Commit

Permalink
Move cast to suppress warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
loewis committed Feb 16, 2006
1 parent d96ee90 commit 67baee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 67baee6

Please sign in to comment.