Index: Modules/_pickle.c =================================================================== --- Modules/_pickle.c (revision 84147) +++ Modules/_pickle.c (working copy) @@ -269,7 +269,7 @@ if (Pdata_push((D), (O)) < 0) return (ER); } while(0) static PyObject * -Pdata_poptuple(Pdata *self, Py_ssize_t start) +Pdata_poptuple(Pdata *self, int start) { PyObject *tuple; Py_ssize_t len, i, j; @@ -286,7 +286,7 @@ } static PyObject * -Pdata_poplist(Pdata *self, Py_ssize_t start) +Pdata_poplist(Pdata *self, int start) { PyObject *list; Py_ssize_t len, i, j; @@ -458,7 +458,7 @@ } else { memcpy(self->write_buf + self->buf_size, s, n); - self->buf_size += n; + self->buf_size += (int)n; return n; } } @@ -644,7 +644,7 @@ if (!self->bin) { pdata[0] = PUT; PyOS_snprintf(pdata + 1, sizeof(pdata) - 1, "%ld\n", x); - len = strlen(pdata); + len = (int)strlen(pdata); } else { if (x < 256) {