possibly inexact long -> double cast
This commit is contained in:
parent
1876ad1094
commit
9452a6a004
|
|
@ -1,3 +1,7 @@
|
|||
2011-07-09 Robert Larice
|
||||
* src/frontend/com_fft.c :
|
||||
possibly inexact long -> double cast
|
||||
|
||||
2011-07-09 Robert Larice
|
||||
* src/frontend/inpcom.c ,
|
||||
* src/frontend/numparam/spicenum.c ,
|
||||
|
|
|
|||
|
|
@ -625,9 +625,10 @@ static void fftext(double* x, double* y, long int n, long int nn, int dir)
|
|||
|
||||
/* Scaling for forward transform */
|
||||
if (dir == 1) {
|
||||
double scale = 1.0 / (double) nn;
|
||||
for (i=0;i<n;i++) {
|
||||
x[i] /= nn; /* don't consider zero padded values */
|
||||
y[i] /= nn;
|
||||
x[i] *= scale; /* don't consider zero padded values */
|
||||
y[i] *= scale;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue