projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c52f52
)
Fix compilation on Windows.
author
Thomas Heller
<theller@ctypes.org>
Mon, 23 Jun 2008 14:49:56 +0000
(14:49 +0000)
committer
Thomas Heller
<theller@ctypes.org>
Mon, 23 Jun 2008 14:49:56 +0000
(14:49 +0000)
Modules/cPickle.c
patch
|
blob
|
history
diff --git
a/Modules/cPickle.c
b/Modules/cPickle.c
index e4bb7a183bd98fe410156853f61e4d86a5df1bd5..98a2b875710adda0ce53c49ba204a750f99cb80c 100644
(file)
--- 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) {