changeset 246:2abc086b13ed

tiaud-compile: max FIR coefficient number is 30, not 31
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Aug 2017 05:17:49 +0000
parents 796c659b747c
children b5b148ef63da
files ffstools/tiaud/compile.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		}