]> granicus.if.org Git - python/commitdiff
Fix two small bugs; add DL_EXPORT() to initcPickle decl.
authorGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:48:44 +0000 (18:48 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:48:44 +0000 (18:48 +0000)
Modules/cPickle.c

index 87da129e389e69a16826f480a23824f3cb719bfc..fbb0c20b65c483156f5fc179aff80ba1dd1489c2 100644 (file)
@@ -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";