mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-15 08:31:57 -05:00
Fixed sort of zero-length array in wsjt1.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@39 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
5b38cdeccd
commit
c23a58f2c8
3
ssort.f
3
ssort.f
@ -26,8 +26,7 @@ c = -2 means sort x in decreasing order and carry y along.
|
||||
|
||||
nn = n
|
||||
if (nn .lt. 1) then
|
||||
print *,
|
||||
+ 'the number of values to be sorted is not positive.'
|
||||
print *,'n = ',nn,' kflag = ',kflag,' in ssort.'
|
||||
return
|
||||
endif
|
||||
c
|
||||
|
4
wsjt1.f
4
wsjt1.f
@ -264,9 +264,10 @@ C Now the multi-tone decoding
|
||||
+ cfile6,ps0)
|
||||
|
||||
npkept=nline !Number of pings that were kept
|
||||
call indexx(npkept,tping,indx) !Merge the ST and MT decodes
|
||||
smax=0.
|
||||
stbest=.false.
|
||||
if(npkept.gt.0) then
|
||||
call indexx(npkept,tping,indx) !Merge the ST and MT decodes
|
||||
do i=1,npkept
|
||||
j=indx(i)
|
||||
if(pick .and. STFound .and.
|
||||
@ -282,6 +283,7 @@ C Now the multi-tone decoding
|
||||
stbest = (msg3.ne.' ')
|
||||
endif
|
||||
10 enddo
|
||||
endif
|
||||
|
||||
dt=1.0/11025.0 !Compute spectrum for pink curve
|
||||
if(stbest) then
|
||||
|
Loading…
Reference in New Issue
Block a user