diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f152855..a624a7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: - name: Build Wheels env: CIBW_ARCHS: "auto64" - CIBW_SKIP: "cp36-* cp37-* cp310-win* cp311-win* cp312-*" + CIBW_SKIP: "cp36-* cp37-* cp312-*" run: | python -m pip install cibuildwheel python -m cibuildwheel --output-dir wheelhouse diff --git a/fast_align_audio/_alignment_cffi.py b/fast_align_audio/_alignment_cffi.py index c616896..9c26af6 100644 --- a/fast_align_audio/_alignment_cffi.py +++ b/fast_align_audio/_alignment_cffi.py @@ -5,7 +5,7 @@ ffibuilder = FFI() ffibuilder.cdef(""" typedef struct { - ssize_t min_idx; + int min_idx; float min_val; } MinResult; """) diff --git a/fast_align_audio/_faa.c b/fast_align_audio/_faa.c index 93d5b4f..fe3d646 100644 --- a/fast_align_audio/_faa.c +++ b/fast_align_audio/_faa.c @@ -49,7 +49,7 @@ static size_t my_min3(size_t a, size_t b, size_t c) { } typedef struct { - ssize_t min_idx; + int min_idx; float min_val; } MinResult; @@ -70,7 +70,7 @@ MinResult fast_find_alignment(size_t a_len, float *a, float d2 = fastmse(result.min_val, my_min3(a_len, b_len - i, max_lookahead), a, &b[i]); if (d2 < result.min_val) { result.min_val = d2; - result.min_idx = -(ssize_t)i; + result.min_idx = -i; } } } diff --git a/setup.py b/setup.py index 4b55610..2a4d245 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,8 @@ def find_version(*file_paths): "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], url="https://github.com/nomonosound/fast-align-audio", )