From 0bea5fb96436588b4e78c5be79bf174b9be7a202 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Mon, 31 Aug 2015 00:17:03 +1000 Subject: flac/encode.c: Fix undefinoed behaviour --- src/flac/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flac') diff --git a/src/flac/encode.c b/src/flac/encode.c index ba1ee62e..d313f233 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -2432,7 +2432,7 @@ FLAC__bool format_input(FLAC__int32 *dest[], unsigned wide_samples, FLAC__bool i unsigned b; for(b = sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++) for(channel = 0; channel < channels; channel++, sample++) { - FLAC__int32 t; + uint32_t t; t = ubuffer.s8[b++]; t <<= 8; t |= ubuffer.u8[b++]; t <<= 8; t |= ubuffer.u8[b++]; -- cgit v1.2.1