[Jppy-commit] [SCM] jppy - Python bindings and API for jpilot databases and a GTK2 GUI branch, master, updated. releases/0.0.48-27-ge2803f2
Ludovic Rousseau
rousseau@imac.maison.bogus
Sun Nov 23 15:40:29 GMT 2008
The following commit has been merged in the master branch:
commit e2803f2c01bc573bf78416a52e699b0cba092ddb
Author: Ludovic Rousseau <rousseau@imac.maison.bogus>
Date: Sun Nov 23 16:37:46 2008 +0100
PyPiContact_SetItem(): use size_t instead of int.
python_module_src/pytype_contacts.c:863: warning: passing argument 3 of
`PyString_AsStringAndSize' from incompatible pointer type
diff --git a/python_module_src/pytype_contacts.c b/python_module_src/pytype_contacts.c
index 78aac2b..b7cbc37 100644
--- a/python_module_src/pytype_contacts.c
+++ b/python_module_src/pytype_contacts.c
@@ -857,7 +857,7 @@ int PyPiContact_SetItem(PyPiContact* self, PyObject* key, PyObject* value) {
Py_DECREF(key);
return -1;
}
- int length;
+ size_t length;
char *buffer;
pi_buffer_t *pibuffer;
PyString_AsStringAndSize(value, &buffer, &length);
--
jppy - Python bindings and API for jpilot databases and a GTK2 GUI
More information about the Jppy-commit
mailing list