Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Fix size_t on Windows.

Peter Sobot7b63a3b2cad6
diff --git a/pedalboard/io/PythonInputStream.h b/pedalboard/io/PythonInputStream.h
index 1c9a787..1e75c7e 100644
--- a/pedalboard/io/PythonInputStream.h
+++ b/pedalboard/io/PythonInputStream.h
@@ -127,7 +127,7 @@ public:
py::bytes bytesObject = readResult.cast<py::bytes>();
char *pythonBuffer = nullptr;
- ssize_t pythonLength = 0;
+ py::ssize_t pythonLength = 0;
if (PYBIND11_BYTES_AS_STRING_AND_SIZE(bytesObject.ptr(), &pythonBuffer,
&pythonLength)) {