Fix an undefined behavior error in the s16 to s32 conversion routine.

This commit is contained in:
David Reid
2025-09-10 15:06:34 +10:00
parent 4de39a8a37
commit 9a091f73aa
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -45496,7 +45496,7 @@ static MA_INLINE void ma_pcm_s16_to_s32__reference(void* dst, const void* src, m
ma_uint64 i;
for (i = 0; i < count; i += 1) {
dst_s32[i] = src_s16[i] << 16;
dst_s32[i] = (ma_int32)src_s16[i] << 16;
}
(void)ditherMode;