From 0ea23391675687029eea7b562d511304dad8fa0d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Sep 2005 21:00:47 +0000 Subject: [PATCH 1/1] 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 --- src/generic/notebook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2