diff options
Diffstat (limited to 'Modules/bsddbmodule.c')
-rw-r--r-- | Modules/bsddbmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index 6bdffde..61c6564 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -240,7 +240,7 @@ bsddb_dealloc(bsddbobject *dp) #define BSDDB_END_SAVE(_dp) Py_END_ALLOW_THREADS #endif -static int +static Py_ssize_t bsddb_length(bsddbobject *dp) { check_bsddbobject_open(dp, -1); @@ -374,7 +374,7 @@ bsddb_ass_sub(bsddbobject *dp, PyObject *key, PyObject *value) } static PyMappingMethods bsddb_as_mapping = { - (inquiry)bsddb_length, /*mp_length*/ + (lenfunc)bsddb_length, /*mp_length*/ (binaryfunc)bsddb_subscript, /*mp_subscript*/ (objobjargproc)bsddb_ass_sub, /*mp_ass_subscript*/ }; |