mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-23 00:32:22 +01:00
This was originally submitted upstream already according to: https://stackoverflow.com/a/70358664
20 lines
448 B
Diff
20 lines
448 B
Diff
--- a/src/_portaudiomodule.c
|
|
+++ b/src/_portaudiomodule.c
|
|
@@ -25,6 +25,7 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#define PY_SSIZE_T_CLEAN
|
|
#include "Python.h"
|
|
#include "portaudio.h"
|
|
#include "_portaudiomodule.h"
|
|
@@ -1291,7 +1292,7 @@
|
|
PyObject *py_status_flags = PyLong_FromUnsignedLong(statusFlags);
|
|
PyObject *py_input_data = Py_None;
|
|
const char *pData;
|
|
- unsigned output_len;
|
|
+ Py_ssize_t output_len;
|
|
PyObject *py_result;
|
|
|
|
if (input) {
|