Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67baee6

Browse files
committed
Move cast to suppress warning.
1 parent d96ee90 commit 67baee6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/marshal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ w_object(PyObject *v, WFILE *p)
181181
else {
182182
char buf[256]; /* Plenty to format any double */
183183
PyFloat_AsReprString(buf, (PyFloatObject *)v);
184-
n = (int)strlen(buf);
184+
n = strlen(buf);
185185
w_byte(TYPE_FLOAT, p);
186-
w_byte(n, p);
186+
w_byte((int)n, p);
187187
w_string(buf, n, p);
188188
}
189189
}

0 commit comments

Comments
 (0)