]> git.saurik.com Git - wxWidgets.git/commitdiff
checking whether a size_t page index is >= 0 is unnecessary (and generates a SGI...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2005 21:00:47 +0000 (21:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2005 21:00:47 +0000 (21:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/notebook.cpp

index ec05ba70b4f967934ca7f60f86bcf3e5c9657ec2..71072898ffd0e7209e30cea7cf18dc91d8b58505 100644 (file)
@@ -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