summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-04 18:48:44 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-04 18:48:44 (GMT)
commit50f385c19783631dce79372930d9760ffc618772 (patch)
treeb1e60df1334cccb453b863ac33c14c926ac88f64 /Modules
parent43466ec7b07de6bcad016bec60839cd6079c5a9c (diff)
downloadcpython-50f385c19783631dce79372930d9760ffc618772.zip
cpython-50f385c19783631dce79372930d9760ffc618772.tar.gz
cpython-50f385c19783631dce79372930d9760ffc618772.tar.bz2
Fix two small bugs; add DL_EXPORT() to initcPickle decl.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 87da129..fbb0c20 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2061,7 +2061,7 @@ newPicklerobject(PyObject *file, int bin) {
if (file)
Py_INCREF(file);
else
- file=Pdata_New(0);
+ file=Pdata_New();
self->file = file;
@@ -3586,6 +3586,7 @@ noload_build(Unpicklerobject *self) {
if (self->stack->length < 1) return stackUnderflow();
Pdata_clear(self->stack, self->stack->length-1);
+ return 0;
}
@@ -4274,7 +4275,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
return 0;
}
-void
+DL_EXPORT(void)
initcPickle() {
PyObject *m, *d, *v;
char *rev="1.61";