From b436a24eed7f607f56f19334b0bff7c193cddf9d Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Mon, 23 Jun 2008 14:49:56 +0000 Subject: Fix compilation on Windows. --- Modules/cPickle.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/cPickle.c b/Modules/cPickle.c index e4bb7a1..98a2b87 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) { -- cgit v0.12