sync with trunk r46493
[reactos.git] / base / applications / sndrec32 / audio_waveout.hpp
index a36518d..0e22afd 100644 (file)
@@ -229,7 +229,7 @@ class audio_waveout
             if ( aud_info.bits() == 16 )
                 svalue = ( unsigned int )  abs( *(( short * ) (main_buffer + aud_info.bytes_in_samples( nsamp ))));
             else if ( aud_info.bits() == 8 )
-               svalue = (unsigned int)(( unsigned char * ) *(main_buffer + aud_info.bytes_in_samples( nsamp )));
+               svalue = (unsigned int)(( ptrdiff_t ) *(main_buffer + aud_info.bytes_in_samples( nsamp )));
 
             else 
                 svalue = 0;