Patch from EvilTypeGuy, compiles under gcc 3.0

This commit is contained in:
theoddone33
2001-08-03 01:37:03 +00:00
parent fcd7dfbdf4
commit 4652d33402
3 changed files with 295 additions and 295 deletions

View File

@@ -238,8 +238,8 @@ void InitDSP(void)
{
#ifdef __OPT__
unsigned int i;
CosTable2 = malloc(INCR*sizeof(double));
SinTable2 = malloc(INCR*sizeof(double));
*CosTable2 = malloc(INCR*sizeof(double));
*SinTable2 = malloc(INCR*sizeof(double));
for (i=0; i<INCR; i++){
CosTable2[i] = (cos((double)(2*PI*i/INCR)));
SinTable2[i] = (sin((double)(2*PI*i/INCR)));