1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/comms/soundmodem/files/patch-fsk_gendf9icfilt.cc
Diane Bruce 2c99c062fb Update to 0.20
Clean up submitted patch to work with system clang compiler
Change to new upstream repository

PR:		ports/206705
Submitted by:	takefu@airport.fm
2016-02-20 17:21:29 +00:00

22 lines
660 B
C++

--- fsk/gendf9icfilt.cc.orig 2003-01-06 14:28:19 UTC
+++ fsk/gendf9icfilt.cc
@@ -41,6 +41,8 @@ using namespace std;
#include "getopt.h"
+#define FFTSZ 2048
+
/* --------------------------------------------------------------------- */
template<typename T> complex<T> rxfilter(T freq)
@@ -173,7 +175,8 @@ static void printfcoeff(ostream& os, uns
printtransferfunc(os, fftsz, over);
else
os << "/* this file is automatically generated, do not edit!! */\n\n";
- complex<double> fftb[fftsz];
+// complex<double> fftb[fftsz];
+ complex<double> fftb[FFTSZ];
double rpulse[fftsz], tpulse[fftsz];
double dover = double(over) / fftsz;
double sum;