shithub: pitch

Download patch

ref: 926aff456d7ee4318c86f6757c38c8a0174dbbf7
parent: a4863786d27a554fdd1929d6b1ca4516c541b05f
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Nov 26 06:30:20 EST 2020

not a functional change, just replace fprintf with fprint

--- a/_kiss_fft_guts.h
+++ b/_kiss_fft_guts.h
@@ -56,7 +56,7 @@
 #if defined(CHECK_OVERFLOW)
 #  define CHECK_OVERFLOW_OP(a,op,b)  \
 	if ( (SAMPPROD)(a) op (SAMPPROD)(b) > SAMP_MAX || (SAMPPROD)(a) op (SAMPPROD)(b) < SAMP_MIN ) { \
-		fprintf(stderr,"WARNING:overflow @ " __FILE__ "(%d): (%d " #op" %d) = %ld\n",__LINE__,(a),(b),(SAMPPROD)(a) op (SAMPPROD)(b) );  }
+		fprint(2,"WARNING:overflow @ " __FILE__ "(%d): (%d " #op" %d) = %ld\n",__LINE__,(a),(b),(SAMPPROD)(a) op (SAMPPROD)(b) );  }
 #endif
 
 
@@ -142,7 +142,7 @@
 
 /* a debugging function */
 #define pcpx(c)\
-    fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )
+    fprint(2,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )
 
 
 #ifdef KISS_FFT_USE_ALLOCA