| 1 |
This is an autogenerated patch header for a single-debian-patch file. The |
| 2 |
delta against upstream is either kept as a single patch, or maintained |
| 3 |
in some VCS, and exported as a single patch instead of more manageable |
| 4 |
atomic patches. |
| 5 |
|
| 6 |
--- pyao-0.82+ds1.orig/src/aomodule.c |
| 7 |
+++ pyao-0.82+ds1/src/aomodule.c |
| 8 |
@@ -26,7 +26,7 @@ uint_32_obj (PyObject *obj, void *addr) |
| 9 |
|
| 10 |
value = PyLong_AsUnsignedLong(obj); |
| 11 |
|
| 12 |
- if (value != -1 || !PyErr_Occurred()) { |
| 13 |
+ if (value != (unsigned long)-1 || !PyErr_Occurred()) { |
| 14 |
if (value <= 0xffffffff) { |
| 15 |
*value_32 = (uint_32) value; |
| 16 |
return 1; |
| 17 |
@@ -364,7 +364,7 @@ py_ao_play(ao_Object *self, PyObject *ar |
| 18 |
const char *samples; |
| 19 |
char *output_samples; |
| 20 |
uint_32 num_bytes = 0; |
| 21 |
- int len; |
| 22 |
+ Py_ssize_t len; |
| 23 |
|
| 24 |
#if PY_MAJOR_VERSION >= 3 |
| 25 |
if (!(PyArg_ParseTuple(args, "y#|O&", &samples, &len, uint_32_obj, &num_bytes))) |
| 26 |
--- pyao-0.82+ds1.orig/src/aomodule.h |
| 27 |
+++ pyao-0.82+ds1/src/aomodule.h |
| 28 |
@@ -19,6 +19,8 @@ |
| 29 |
#ifndef __AO_MODULE_H__ |
| 30 |
#define __AO_MODULE_H__ |
| 31 |
|
| 32 |
+#define PY_SSIZE_T_CLEAN |
| 33 |
+ |
| 34 |
#include <Python.h> |
| 35 |
#include <structmember.h> |
| 36 |
#include <ao/ao.h> |
| 37 |
@@ -65,7 +67,7 @@ It can either be called as a member func |
| 38 |
or as a standalone function which takes the integer id or the string name of the\n\ |
| 39 |
driver:\n\ |
| 40 |
ao.driver_info(1) or ao.driver_info(\"pulse\")\n\ |
| 41 |
-If None is passed or the argument omited a list of informations for all drivers\n\ |
| 42 |
+If None is passed or the argument omited information for all drivers\n\ |
| 43 |
is returned:\n\ |
| 44 |
ao.driver_info() or ao.driver_info(None)"; |
| 45 |
static PyObject *py_ao_driver_info(PyObject *, PyObject *); |