diff Modules/_sqlite/row.c @ 37387:4ab8ec9e59df legacy-trunk

Make ssize_t clean
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 01 Apr 2006 09:08:06 +0000
parents e546274d6503
children d27058c409df
line wrap: on
line diff
--- a/Modules/_sqlite/row.c	Sat Apr 01 08:59:03 2006 +0000
+++ b/Modules/_sqlite/row.c	Sat Apr 01 09:08:06 2006 +0000
@@ -126,7 +126,7 @@
     }
 }
 
-int row_length(Row* self, PyObject* args, PyObject* kwargs)
+Py_ssize_t row_length(Row* self, PyObject* args, PyObject* kwargs)
 {
     return PyTuple_GET_SIZE(self->data);
 }
@@ -138,7 +138,7 @@
 
 
 PyMappingMethods row_as_mapping = {
-    /* mp_length        */ (inquiry)row_length,
+    /* mp_length        */ (lenfunc)row_length,
     /* mp_subscript     */ (binaryfunc)row_subscript,
     /* mp_ass_subscript */ (objobjargproc)0,
 };