From 8f4961c59cc947c4bd768a0006d8a9f417df4777 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 4 Feb 2015 13:18:59 +0000 Subject: [PATCH] Don't check if an unsigned variable is less than 0. This doesn't risk ever being true. Closes #16831. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/utilsx11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index b07d0d4185..cb949f1054 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -311,7 +311,7 @@ static bool wxQueryWMspecSupport(Display *display, Window rootWnd, Atom feature) _NET_SUPPORTING_WM_CHECK, 0, LONG_MAX, False, XA_WINDOW, &type, &format, &nwins, &after, (unsigned char **)&wins); - if ( type != XA_WINDOW || nwins <= 0 || wins[0] == None ) + if ( type != XA_WINDOW || nwins == 0 || wins[0] == None ) return false; XFree(wins);