1
0
Fork 0
forked from len0rd/rockbox

changes to compile without warnings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6057 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Christian Gmeiner 2005-02-25 17:19:32 +00:00
parent e449d88b3e
commit c3e55c01a5
3 changed files with 8 additions and 8 deletions

View file

@ -17,6 +17,7 @@
#include <string.h>
#include <math.h>
#include <stdlib.h>
#define LOSSY_MUTE
@ -513,6 +514,7 @@ static void fixup_samples (WavpackStream *wps, long *buffer, ulong sample_count)
if (flags & HYBRID_FLAG) {
long min_value, max_value, min_shifted, max_shifted;
min_value = max_value = min_shifted = max_shifted = 0;
switch (flags & BYTES_STORED) {
case 0:
@ -531,8 +533,9 @@ static void fixup_samples (WavpackStream *wps, long *buffer, ulong sample_count)
break;
case 3:
min_shifted = (min_value = -(long)2147483648 >> shift) << shift;
max_shifted = (max_value = (long) 2147483647 >> shift) << shift;
// 0x80000000 is the same as 2147483648
min_shifted = (min_value = -0x80000000 >> shift) << shift;
max_shifted = (max_value = 0x80000000 >> shift) << shift;
break;
}