src/audio/SDL_mixer.c
changeset 1985 8055185ae4ed
parent 1982 3b4ce57c6215
child 2013 0615fa58c0be
     1.1 --- a/src/audio/SDL_mixer.c	Thu Aug 24 12:49:59 2006 +0000
     1.2 +++ b/src/audio/SDL_mixer.c	Mon Aug 28 03:17:39 2006 +0000
     1.3 @@ -263,8 +263,8 @@
     1.4              Uint32 *dst32 = (Uint32 *) dst;
     1.5              Sint32 src1, src2;
     1.6              Sint64 dst_sample;
     1.7 -            const Sint64 max_audioval = ((((Sint64)1) << (32 - 1)) - 1);
     1.8 -            const Sint64 min_audioval = -(((Sint64)1) << (32 - 1));
     1.9 +            const Sint64 max_audioval = ((((Sint64) 1) << (32 - 1)) - 1);
    1.10 +            const Sint64 min_audioval = -(((Sint64) 1) << (32 - 1));
    1.11  
    1.12              len /= 4;
    1.13              while (len--) {
    1.14 @@ -289,8 +289,8 @@
    1.15              Uint32 *dst32 = (Uint32 *) dst;
    1.16              Sint32 src1, src2;
    1.17              Sint64 dst_sample;
    1.18 -            const Sint64 max_audioval = ((((Sint64)1) << (32 - 1)) - 1);
    1.19 -            const Sint64 min_audioval = -(((Sint64)1) << (32 - 1));
    1.20 +            const Sint64 max_audioval = ((((Sint64) 1) << (32 - 1)) - 1);
    1.21 +            const Sint64 min_audioval = -(((Sint64) 1) << (32 - 1));
    1.22  
    1.23              len /= 4;
    1.24              while (len--) {
    1.25 @@ -322,7 +322,11 @@
    1.26              const double min_audioval = -3.40282347e+38F;
    1.27  
    1.28              /* !!! FIXME: this is a little nasty. */
    1.29 -            union { float f; Uint32 ui32; } cvt;
    1.30 +            union
    1.31 +            {
    1.32 +                float f;
    1.33 +                Uint32 ui32;
    1.34 +            } cvt;
    1.35  
    1.36              len /= 4;
    1.37              while (len--) {
    1.38 @@ -360,7 +364,11 @@
    1.39              const double min_audioval = -3.40282347e+38F;
    1.40  
    1.41              /* !!! FIXME: this is a little nasty. */
    1.42 -            union { float f; Uint32 ui32; } cvt;
    1.43 +            union
    1.44 +            {
    1.45 +                float f;
    1.46 +                Uint32 ui32;
    1.47 +            } cvt;
    1.48  
    1.49              len /= 4;
    1.50              while (len--) {