Skip to content

Commit

Permalink
Fixed some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LMP88959 authored Oct 12, 2023
1 parent d2db6b7 commit 30714c0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,17 @@ init_eq(struct EQF *f,
f->g[2] = g_hi;

pal_sincos14(&sn, &cs, T14_PI * f_lo / rate);
if (EQ_P >= 15) {
f->lf = 2 * (sn << (EQ_P - 15));
} else {
f->lf = 2 * (sn >> (15 - EQ_P));
}
#if (EQ_P >= 15)
f->lf = 2 * (sn << (EQ_P - 15));
#else
f->lf = 2 * (sn >> (15 - EQ_P));
#endif
pal_sincos14(&sn, &cs, T14_PI * f_hi / rate);
if (EQ_P >= 15) {
f->hf = 2 * (sn << (EQ_P - 15));
} else {
f->hf = 2 * (sn >> (15 - EQ_P));
}
#if (EQ_P >= 15)
f->hf = 2 * (sn << (EQ_P - 15));
#else
f->hf = 2 * (sn >> (15 - EQ_P));
#endif
}

static void
Expand Down Expand Up @@ -359,8 +359,8 @@ pal_demodulate(struct PAL_CRT *c, int noise)
field = (field * (ratio / 2));

for (line = PAL_TOP; line < PAL_BOT; line++) {
unsigned pos, ln;
int scanL, scanR, dx;
unsigned pos, ln, scanR;
int scanL, dx;
int L, R;
unsigned char *cL, *cR;
int wave[4];
Expand Down

0 comments on commit 30714c0

Please sign in to comment.