Silence a couple warnings.

This commit is contained in:
Brandon Wright 2018-05-14 11:20:12 -05:00
parent 2f57076877
commit c35360b567
3 changed files with 3 additions and 2 deletions

View File

@ -259,6 +259,7 @@ Snes9xConfig::load_defaults (void)
Settings.DynamicRateLimit = 5;
Settings.HDMATimingHack = 100;
Settings.SuperFXClockMultiplier = 100;
Settings.InitialSnapshotFilename[0] = '\0';
#ifdef NETPLAY_SUPPORT
Settings.NetPlay = FALSE;

View File

@ -125,7 +125,7 @@ main (int argc, char *argv[])
gtk_window_present (top_level->get_window ());
if (rom_filename && Settings.InitialSnapshotFilename)
if (rom_filename && *Settings.InitialSnapshotFilename)
S9xUnfreezeGame(Settings.InitialSnapshotFilename);
gtk_main ();

View File

@ -262,7 +262,7 @@ S9xPulseSoundDriver::samples_available (void)
}
}
bytes = MIN (bytes, (samples << (Settings.SixteenBitSound ? 1 : 0)));
bytes = MIN ((int) bytes, (samples << (Settings.SixteenBitSound ? 1 : 0)));
if (!bytes)
return;