just quiet some warnings

This commit is contained in:
shuffle2 2010-02-24 21:33:18 +00:00
parent 90c02269b1
commit 308ca56dd6
3 changed files with 10 additions and 2 deletions

View File

@ -916,6 +916,14 @@
<File
RelativePath="..\..\src\gba\GBASockClient.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="_SCL_SECURE_NO_WARNINGS"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\src\gba\GBASockClient.h"

View File

@ -505,7 +505,7 @@ void Effects_Buffer::mix_effects( blip_sample_t* out_, int pair_count )
int bufs_remain = bufs_size;
do
{
if ( buf->non_silent() && ( buf->echo == (bool)echo_phase ) )
if ( buf->non_silent() && ( buf->echo == !!echo_phase ) )
{
stereo_fixed_t* BLIP_RESTRICT out = (stereo_fixed_t*) &echo [echo_pos];
int const bass = BLIP_READER_BASS( *buf );

View File

@ -18,7 +18,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
#include "blargg_source.h"
#if GB_APU_CUSTOM_STATE
#define REFLECT( x, y ) (save ? (io->y) = (x) : (x) = (io->y) )
#define REFLECT( x, y ) (save ? (io->y) = (x) : (x) = !!(io->y) )
#else
#define REFLECT( x, y ) (save ? set_val( io->y, x ) : (void) ((x) = get_val( io->y )))