# HG changeset patch # User Mychaela Falconia # Date 1503724669 0 # Node ID 2abc086b13ed300bcbde5593f4a6503b6b3fed93 # Parent 796c659b747cd8a23c7c7a3fae4140e65973867c tiaud-compile: max FIR coefficient number is 30, not 31 diff -r 796c659b747c -r 2abc086b13ed ffstools/tiaud/compile.c --- a/ffstools/tiaud/compile.c Sat Aug 26 04:50:25 2017 +0000 +++ b/ffstools/tiaud/compile.c Sat Aug 26 05:17:49 2017 +0000 @@ -163,9 +163,9 @@ if (*cp) *cp++ = '\0'; start_idx = strtol_wrap(np); - if (start_idx < 0 || start_idx > 31) { + if (start_idx < 0 || start_idx > 30) { fprintf(stderr, - "%s line %d: FIR coefficient number must be between 0 and 31\n", + "%s line %d: FIR coefficient number must be between 0 and 30\n", infname, lineno); exit(1); } @@ -177,9 +177,9 @@ goto missing_arg; break; } - if (idx > 31) { + if (idx > 30) { fprintf(stderr, - "%s line %d: spill past FIR coefficient 31\n", + "%s line %d: spill past FIR coefficient 30\n", infname, lineno); exit(1); } @@ -361,9 +361,9 @@ if (*cp) *cp++ = '\0'; start_idx = strtol_wrap(np); - if (start_idx < 0 || start_idx > 31) { + if (start_idx < 0 || start_idx > 30) { fprintf(stderr, - "%s line %d: FIR coefficient number must be between 0 and 31\n", + "%s line %d: FIR coefficient number must be between 0 and 30\n", infname, lineno); exit(1); } @@ -375,9 +375,9 @@ goto missing_arg; break; } - if (idx > 31) { + if (idx > 30) { fprintf(stderr, - "%s line %d: spill past FIR coefficient 31\n", + "%s line %d: spill past FIR coefficient 30\n", infname, lineno); exit(1); }