From 1ed1f719bcd980c61f2e40a4e892c11652cc6c4d Mon Sep 17 00:00:00 2001 From: chinhodado Date: Sun, 16 Feb 2014 12:25:42 -0500 Subject: [PATCH] remove unnecessary nonnegative check for unsigned variable --- Windows/WndMainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index a293932940..3db87cd2d8 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -1485,7 +1485,7 @@ namespace MainWindow // The Menu ID is contained in wParam, so subtract // ID_SHADERS_BASE and an additional 1 off it. u32 index = (wParam - ID_SHADERS_BASE - 1); - if (index >= 0 && index < availableShaders.size()) { + if (index < availableShaders.size()) { g_Config.sPostShaderName = availableShaders[index]; NativeMessageReceived("gpu resized", "");