]> granicus.if.org Git - python/commitdiff
Fix compilation on Windows.
authorThomas Heller <theller@ctypes.org>
Mon, 23 Jun 2008 14:49:56 +0000 (14:49 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 23 Jun 2008 14:49:56 +0000 (14:49 +0000)
Modules/cPickle.c

index e4bb7a183bd98fe410156853f61e4d86a5df1bd5..98a2b875710adda0ce53c49ba204a750f99cb80c 100644 (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) {