mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 17:24:03 +02:00
Fix an undefined behavior error in the s16 to s32 conversion routine.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user