Просмотр исходного кода

removed the possibly uneeded cast on values.gdbstub_port

as far as i could tell this cast is unneeded because [GDBStub::SetServerPort](https://github.com/citra-emu/citra/blob/master/src/core/gdbstub/gdbstub.cpp#L897) takes a u16 and [values.gdbstub_port](https://github.com/citra-emu/citra/blob/master/src/core/settings.h#L116) is already a u16
noah the goodra 9 лет назад
Родитель
Сommit
a0874d9b64
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/settings.cpp

+ 1 - 1
src/core/settings.cpp

@@ -15,7 +15,7 @@ Values values = {};
 
 void Apply() {
 
-    GDBStub::SetServerPort(static_cast<u32>(values.gdbstub_port));
+    GDBStub::SetServerPort(values.gdbstub_port);
     GDBStub::ToggleServer(values.use_gdbstub);
 
     VideoCore::g_hw_renderer_enabled = values.use_hw_renderer;