winemp3.acm: Remove unneeded casts

Andrew Talbot andrew.talbot at talbotville.com
Sat Feb 2 11:27:11 CST 2008


Changelog:
    winemp3.acm: Remove unneeded casts.

diff --git a/dlls/winemp3.acm/interface.c b/dlls/winemp3.acm/interface.c
index 2ac120a..336a4f8 100644
--- a/dlls/winemp3.acm/interface.c
+++ b/dlls/winemp3.acm/interface.c
@@ -204,13 +204,13 @@ int decodeMP3(struct mpstr *mp,const unsigned char *in,int isize,unsigned char *
            getbits(16);
         switch(mp->fr.lay) {
           case 1:
-	    do_layer1(&mp->fr,(unsigned char *) out,done);
+	    do_layer1(&mp->fr,out,done);
             break;
           case 2:
-	    do_layer2(&mp->fr,(unsigned char *) out,done);
+	    do_layer2(&mp->fr,out,done);
             break;
           case 3:
-	    do_layer3(&mp->fr,(unsigned char *) out,done);
+	    do_layer3(&mp->fr,out,done);
             break;
         }
 
diff --git a/dlls/winemp3.acm/layer2.c b/dlls/winemp3.acm/layer2.c
index d3cd463..535d90c 100644
--- a/dlls/winemp3.acm/layer2.c
+++ b/dlls/winemp3.acm/layer2.c
@@ -174,7 +174,7 @@ static void II_step_two(unsigned int *bit_alloc, real fraction[2][4][SBLIMIT],
           {
             static int *table[] = { 0,0,0,grp_3tab,0,grp_5tab,0,0,0,grp_9tab };
             unsigned int idx,*tab,m=scale[x1];
-            idx = (unsigned int) getbits(k);
+            idx = getbits(k);
             tab = (unsigned int *) (table[d1] + idx + idx + idx);
             fraction[j][0][i] = muls[*tab++][m];
             fraction[j][1][i] = muls[*tab++][m];
@@ -209,7 +209,7 @@ static void II_step_two(unsigned int *bit_alloc, real fraction[2][4][SBLIMIT],
           static int *table[] = { 0,0,0,grp_3tab,0,grp_5tab,0,0,0,grp_9tab };
           unsigned int idx,*tab,m1,m2;
           m1 = scale[x1]; m2 = scale[x1+3];
-          idx = (unsigned int) getbits(k);
+          idx = getbits(k);
           tab = (unsigned int *) (table[d1] + idx + idx + idx);
           fraction[0][0][i] = muls[*tab][m1]; fraction[1][0][i] = muls[*tab++][m2];
           fraction[0][1][i] = muls[*tab][m1]; fraction[1][1][i] = muls[*tab++][m2];



More information about the wine-patches mailing list