Warning fixes

This commit is contained in:
Connor McLaughlin 2021-01-26 02:23:06 +10:00
parent e79dff1731
commit 1b16ba3d98
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ bool GPU_HW_Vulkan::DoState(StateWrapper& sw, HostDisplayTexture** host_texture,
{
HostDisplayTexture* htex = *host_texture;
if (!htex || htex->GetWidth() != m_vram_texture.GetWidth() || htex->GetHeight() != m_vram_texture.GetHeight() ||
htex->GetSamples() != m_vram_texture.GetSamples())
htex->GetSamples() != static_cast<u32>(m_vram_texture.GetSamples()))
{
delete htex;

View file

@ -262,7 +262,7 @@ void Settings::Load(SettingsInterface& si)
debugging.dump_cpu_to_vram_copies = si.GetBoolValue("Debug", "DumpCPUToVRAMCopies");
debugging.dump_vram_to_cpu_copies = si.GetBoolValue("Debug", "DumpVRAMToCPUCopies");
debugging.enable_gdb_server = si.GetBoolValue("Debug", "EnableGDBServer");
debugging.gdb_server_port = si.GetIntValue("Debug", "GDBServerPort");
debugging.gdb_server_port = static_cast<u16>(si.GetIntValue("Debug", "GDBServerPort"));
debugging.show_gpu_state = si.GetBoolValue("Debug", "ShowGPUState");
debugging.show_cdrom_state = si.GetBoolValue("Debug", "ShowCDROMState");
debugging.show_spu_state = si.GetBoolValue("Debug", "ShowSPUState");
@ -304,7 +304,7 @@ void Settings::Save(SettingsInterface& si) const
si.SetFloatValue("Main", "RewindFrequency", rewind_save_frequency);
si.SetIntValue("Main", "RewindSaveSlots", rewind_save_slots);
si.SetBoolValue("Main", "RunaheadEnable", runahead_enable);
si.SetFloatValue("Main", "RunaheadFrames", runahead_frames);
si.SetIntValue("Main", "RunaheadFrames", runahead_frames);
si.SetStringValue("CPU", "ExecutionMode", GetCPUExecutionModeName(cpu_execution_mode));
si.SetBoolValue("CPU", "OverclockEnable", cpu_overclock_enable);