Fix truncation to float warning in mscv 81/head
authorjossgray <joss@jossgray.net>
Mon, 5 Dec 2016 20:37:38 +0000 (20:37 +0000)
committerjossgray <joss@jossgray.net>
Mon, 5 Dec 2016 20:37:38 +0000 (20:37 +0000)
tests/testall.cpp

index 419f27b630729bfb9c6d5a3d99e6fdbc8832ccab..b94ce696d194114e1f36db55fe8a46e37134af13 100644 (file)
@@ -66,7 +66,7 @@ int sawni( void *outputBuffer, void * /*inputBuffer*/, unsigned int nBufferFrame
   if ( status )
     std::cout << "Stream underflow detected!" << std::endl;
 
-  float increment;
+  double increment;
   for ( j=0; j<channels; j++ ) {
     increment = BASE_RATE * (j+1+(j*0.1));
     for ( i=0; i<nBufferFrames; i++ ) {