From a0874d9b64fe4d8cabf6d62fc62301460b62a9ea Mon Sep 17 00:00:00 2001 From: noah the goodra Date: Tue, 31 Jan 2017 11:44:23 -0600 Subject: [PATCH] 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 --- src/core/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 9afaf79ec..3a32b70aa 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -15,7 +15,7 @@ Values values = {}; void Apply() { - GDBStub::SetServerPort(static_cast(values.gdbstub_port)); + GDBStub::SetServerPort(values.gdbstub_port); GDBStub::ToggleServer(values.use_gdbstub); VideoCore::g_hw_renderer_enabled = values.use_hw_renderer;