From 35b19b0b79caa8e1d028bce1c26b865d214ffdba Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Mon, 29 Apr 2024 15:25:25 +0200 Subject: [PATCH] fix(build): fix another type conversion issue in `DmDls_decodeAdpcm` --- src/Dls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dls.c b/src/Dls.c index 6b6096c..0252f87 100644 --- a/src/Dls.c +++ b/src/Dls.c @@ -221,7 +221,7 @@ static size_t DmDls_decodeAdpcm(DmDlsWave const* slf, float* out, size_t len) { } uint32_t block_count = slf->pcm_size / slf->block_align; - uint32_t frames_per_block = (slf->block_align - 6 * slf->channels) * 2 /* two frames per channel from the header */; + uint32_t frames_per_block = (uint32_t) (slf->block_align - 6 * slf->channels) * 2 /* two frames per channel from the header */; uint32_t size = frames_per_block * block_count; if (out == NULL || len == 0) {