From: Vadim Zeitlin Date: Sat, 17 Sep 2005 21:00:47 +0000 (+0000) Subject: checking whether a size_t page index is >= 0 is unnecessary (and generates a SGI... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0ea23391675687029eea7b562d511304dad8fa0d checking whether a size_t page index is >= 0 is unnecessary (and generates a SGI CC warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index ec05ba70b4..71072898ff 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -47,7 +47,7 @@ // ---------------------------------------------------------------------------- // check that the page index is valid -#define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((nPage) < GetPageCount())) +#define IS_VALID_PAGE(nPage) ((nPage) < GetPageCount()) // ---------------------------------------------------------------------------- // event table