mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-24 11:40:31 -05:00
Add more bounds checks.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7762 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
12c1b45c66
commit
4c88ab860b
@ -207,9 +207,9 @@ subroutine ft8_downsample(dd,f0,c1)
|
||||
baud=12000.0/(32.0*64.0)
|
||||
i0=nint(f0/df)
|
||||
ft=f0+8.0*baud
|
||||
it=nint(ft/df)
|
||||
it=min(nint(ft/df),NMAX/2-1)
|
||||
fb=f0-1.0*baud
|
||||
ib=nint(fb/df)
|
||||
ib=max(1,nint(fb/df))
|
||||
k=0
|
||||
c1=cmplx(0.0,0.0)
|
||||
do i=ib,it
|
||||
|
Loading…
Reference in New Issue
Block a user