Author: sserapion
Date: Sun Dec 27 19:03:16 2009
New Revision: 44772
URL:
http://svn.reactos.org/svn/reactos?rev=44772&view=rev
Log:
Fix warning cast to 'unsigned int' loses precision.
Modified:
branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_wavein.hpp
branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_waveout.hpp
Modified: branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_wavein.hpp
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_wavein.hpp
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_wavein.hpp
[iso-8859-1] Sun Dec 27 19:03:16 2009
@@ -305,7 +305,7 @@
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;
Modified: branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_waveout.hpp
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_waveout.hpp
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/applications/sndrec32/audio_waveout.hpp
[iso-8859-1] Sun Dec 27 19:03:16 2009
@@ -229,7 +229,7 @@
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;