From: Thomas Heller Date: Mon, 23 Jun 2008 14:49:56 +0000 (+0000) Subject: Fix compilation on Windows. X-Git-Tag: v2.6b2~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b436a24eed7f607f56f19334b0bff7c193cddf9d;p=python Fix compilation on Windows. --- diff --git a/Modules/cPickle.c b/Modules/cPickle.c index e4bb7a183b..98a2b87571 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -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) {