Skip to content

Commit fe0ab63

Browse files
authored
Fixed some compiler warnings.
1 parent c3e4319 commit fe0ab63

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

crt_core.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,17 @@ init_eq(struct EQF *f,
182182
f->g[2] = g_hi;
183183

184184
crt_sincos14(&sn, &cs, T14_PI * f_lo / rate);
185-
if (EQ_P >= 15) {
186-
f->lf = 2 * (sn << (EQ_P - 15));
187-
} else {
188-
f->lf = 2 * (sn >> (15 - EQ_P));
189-
}
185+
#if (EQ_P >= 15)
186+
f->lf = 2 * (sn << (EQ_P - 15));
187+
#else
188+
f->lf = 2 * (sn >> (15 - EQ_P));
189+
#endif
190190
crt_sincos14(&sn, &cs, T14_PI * f_hi / rate);
191-
if (EQ_P >= 15) {
192-
f->hf = 2 * (sn << (EQ_P - 15));
193-
} else {
194-
f->hf = 2 * (sn >> (15 - EQ_P));
195-
}
191+
#if (EQ_P >= 15)
192+
f->hf = 2 * (sn << (EQ_P - 15));
193+
#else
194+
f->hf = 2 * (sn >> (15 - EQ_P));
195+
#endif
196196
}
197197

198198
static void
@@ -388,8 +388,8 @@ crt_demodulate(struct CRT *v, int noise)
388388
field = (field * (ratio / 2));
389389

390390
for (line = CRT_TOP; line < CRT_BOT; line++) {
391-
unsigned pos, ln;
392-
int scanL, scanR, dx;
391+
unsigned pos, ln, scanR;
392+
int scanL, dx;
393393
int L, R;
394394
unsigned char *cL, *cR;
395395
#if (CRT_CC_SAMPLES == 4)

0 commit comments

Comments
 (0)