Commit 50f385c1 authored by Guido van Rossum's avatar Guido van Rossum

Fix two small bugs; add DL_EXPORT() to initcPickle decl.

parent 43466ec7
...@@ -2061,7 +2061,7 @@ newPicklerobject(PyObject *file, int bin) { ...@@ -2061,7 +2061,7 @@ newPicklerobject(PyObject *file, int bin) {
if (file) if (file)
Py_INCREF(file); Py_INCREF(file);
else else
file=Pdata_New(0); file=Pdata_New();
self->file = file; self->file = file;
...@@ -3586,6 +3586,7 @@ noload_build(Unpicklerobject *self) { ...@@ -3586,6 +3586,7 @@ noload_build(Unpicklerobject *self) {
if (self->stack->length < 1) return stackUnderflow(); if (self->stack->length < 1) return stackUnderflow();
Pdata_clear(self->stack, self->stack->length-1); Pdata_clear(self->stack, self->stack->length-1);
return 0;
} }
...@@ -4274,7 +4275,7 @@ init_stuff(PyObject *module, PyObject *module_dict) { ...@@ -4274,7 +4275,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
return 0; return 0;
} }
void DL_EXPORT(void)
initcPickle() { initcPickle() {
PyObject *m, *d, *v; PyObject *m, *d, *v;
char *rev="1.61"; char *rev="1.61";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment