mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-04 18:38:43 -04:00
Fixed getfile for 16-bit reads in Win32.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/WSJT/trunk@12 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f1c65870e6
commit
9b4227f935
@ -37,8 +37,6 @@ subroutine decode3(d2,jz,istart,filename)
|
||||
sum=sum+d2(i)
|
||||
enddo
|
||||
nave=nint(sum/jz)
|
||||
! sq=0.d0
|
||||
! nsq=0
|
||||
do i=1,jz
|
||||
d2(i)=d2(i)-nave
|
||||
d2d(i)=d2(i)
|
||||
|
@ -41,6 +41,7 @@ subroutine getfile(fname,len)
|
||||
#ifdef Win32
|
||||
open(10,file=fname,form='binary',status='old',err=998)
|
||||
read(10,end=998) hdr
|
||||
|
||||
#else
|
||||
call rfile2(fname,hdr,44+2*NDMAX,nr)
|
||||
#endif
|
||||
@ -64,6 +65,7 @@ subroutine getfile(fname,len)
|
||||
if(ndata.gt.2*NDMAX) ndata=2*NDMAX
|
||||
#ifdef Win32
|
||||
call rfile(10,d2c,ndata,ierr)
|
||||
jzc=ndata/2
|
||||
if(ierr.ne.0) go to 999
|
||||
#else
|
||||
jzc=ndata/2
|
||||
|
Loading…
Reference in New Issue
Block a user