This is an autogenerated patch header for a single-debian-patch file. The delta against upstream is either kept as a single patch, or maintained in some VCS, and exported as a single patch instead of more manageable atomic patches. --- pyao-0.82+ds1.orig/src/aomodule.c +++ pyao-0.82+ds1/src/aomodule.c @@ -26,7 +26,7 @@ uint_32_obj (PyObject *obj, void *addr) value = PyLong_AsUnsignedLong(obj); - if (value != -1 || !PyErr_Occurred()) { + if (value != (unsigned long)-1 || !PyErr_Occurred()) { if (value <= 0xffffffff) { *value_32 = (uint_32) value; return 1; @@ -364,7 +364,7 @@ py_ao_play(ao_Object *self, PyObject *ar const char *samples; char *output_samples; uint_32 num_bytes = 0; - int len; + Py_ssize_t len; #if PY_MAJOR_VERSION >= 3 if (!(PyArg_ParseTuple(args, "y#|O&", &samples, &len, uint_32_obj, &num_bytes))) --- pyao-0.82+ds1.orig/src/aomodule.h +++ pyao-0.82+ds1/src/aomodule.h @@ -19,6 +19,8 @@ #ifndef __AO_MODULE_H__ #define __AO_MODULE_H__ +#define PY_SSIZE_T_CLEAN + #include #include #include @@ -65,7 +67,7 @@ It can either be called as a member func or as a standalone function which takes the integer id or the string name of the\n\ driver:\n\ ao.driver_info(1) or ao.driver_info(\"pulse\")\n\ -If None is passed or the argument omited a list of informations for all drivers\n\ +If None is passed or the argument omited information for all drivers\n\ is returned:\n\ ao.driver_info() or ao.driver_info(None)"; static PyObject *py_ao_driver_info(PyObject *, PyObject *);