Fix compilation on Windows.

This commit is contained in:
Thomas Heller 2008-06-23 14:49:56 +00:00
parent 4c52f52ef3
commit b436a24eed
1 changed files with 4 additions and 2 deletions

View File

@ -1519,11 +1519,12 @@ batch_list(Picklerobject *self, PyObject *iter)
PyObject *obj;
PyObject *slice[BATCHSIZE];
int i, n;
self->nesting++;
static char append = APPEND;
static char appends = APPENDS;
self->nesting++;
assert(iter != NULL);
if (self->proto == 0) {
@ -1659,11 +1660,12 @@ batch_dict(Picklerobject *self, PyObject *iter)
PyObject *p;
PyObject *slice[BATCHSIZE];
int i, n;
self->nesting++;
static char setitem = SETITEM;
static char setitems = SETITEMS;
self->nesting++;
assert(iter != NULL);
if (self->proto == 0) {