mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-27 02:50:39 -04:00 
			
		
		
		
	Fix complex buffer size for real to complex DFT
This fixes a memory corruption issue. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7776 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									ca380225f9
								
							
						
					
					
						commit
						11ef55761e
					
				| @ -195,14 +195,14 @@ subroutine ft8_downsample(dd,f0,c1) | ||||
| 
 | ||||
|   parameter (NMAX=15*12000,NFFT2=2812) | ||||
|   complex c1(0:NFFT2-1) | ||||
|   complex cx(0:NMAX/2-1) | ||||
|   complex cx(0:NMAX/2) | ||||
|   real dd(NMAX),x(NMAX) | ||||
|   equivalence (x,cx) | ||||
|   save x | ||||
| 
 | ||||
|   df=12000.0/NMAX | ||||
|   x=dd | ||||
|   call four2a(x,NMAX,1,-1,0)             !r2c FFT to freq domain | ||||
|   call four2a(cx,NMAX,1,-1,0)             !r2c FFT to freq domain | ||||
|   baud=12000.0/(32.0*64.0) | ||||
|   i0=nint(f0/df) | ||||
|   ft=f0+8.0*baud | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user