diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-01 09:08:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-01 09:08:06 (GMT) |
commit | 95f0e4c401eaa7dc49c93446d51bfe4b76459d50 (patch) | |
tree | cdb7f37546837047e767d0dbcc9c222fa1258a3d /Modules/_sqlite | |
parent | 828fdefd920ff095f998af43fd1c5ada1cf13fa3 (diff) | |
download | cpython-95f0e4c401eaa7dc49c93446d51bfe4b76459d50.zip cpython-95f0e4c401eaa7dc49c93446d51bfe4b76459d50.tar.gz cpython-95f0e4c401eaa7dc49c93446d51bfe4b76459d50.tar.bz2 |
Make ssize_t clean
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/connection.c | 4 | ||||
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 | ||||
-rw-r--r-- | Modules/_sqlite/row.c | 4 | ||||
-rw-r--r-- | Modules/_sqlite/statement.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index e53f0b5..0445b38 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -377,7 +377,7 @@ void _set_result(sqlite3_context* context, PyObject* py_val) { long longval; const char* buffer; - int buflen; + Py_ssize_t buflen; PyObject* stringval; if (PyErr_Occurred()) { @@ -416,7 +416,7 @@ PyObject* _build_py_params(sqlite3_context *context, int argc, sqlite3_value** a PyObject* cur_py_value; const char* val_str; PY_LONG_LONG val_int; - int buflen; + Py_ssize_t buflen; void* raw_buffer; args = PyTuple_New(argc); diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 2a8dda4..fe6cff9 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -239,7 +239,7 @@ PyObject* _fetch_one_row(Cursor* self) PY_LONG_LONG intval; PyObject* converter; PyObject* converted; - int nbytes; + Py_ssize_t nbytes; PyObject* buffer; void* raw_buffer; const char* val_str; diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c index 97b538d..61de801 100644 --- a/Modules/_sqlite/row.c +++ b/Modules/_sqlite/row.c @@ -126,7 +126,7 @@ PyObject* row_subscript(Row* self, PyObject* idx) } } -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 @@ static int row_print(Row* self, FILE *fp, int flags) PyMappingMethods row_as_mapping = { - /* mp_length */ (inquiry)row_length, + /* mp_length */ (lenfunc)row_length, /* mp_subscript */ (binaryfunc)row_subscript, /* mp_ass_subscript */ (objobjargproc)0, }; diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c index 91ec1bb..4a957d6 100644 --- a/Modules/_sqlite/statement.c +++ b/Modules/_sqlite/statement.c @@ -94,7 +94,7 @@ int statement_bind_parameter(Statement* self, int pos, PyObject* parameter) #endif const char* buffer; char* string; - int buflen; + Py_ssize_t buflen; PyObject* stringval; if (parameter == Py_None) { |