From 5eed855656b3996f4c0aa0a585a4820a2af6d628 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 8 Jan 2011 18:22:07 +0000 Subject: [PATCH] remove always-true test of unsigned >= 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/ctrlcmn.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 32f17b17a5..e4e636b886 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -372,15 +372,7 @@ wxString wxControlBase::DoEllipsizeSingleLine(const wxString& curLine, const wxD return curLine; } -#ifdef __VMS -#pragma message disable unscomzer - // suppress warnings on comparison of unsigned numbers -#endif - wxASSERT(initialCharToRemove >= 0 && initialCharToRemove <= len-1); // see valid range for initialCharToRemove above -#ifdef __VMS -#pragma message enable unscomzer - // suppress warnings on comparison of unsigned numbers -#endif + wxASSERT(initialCharToRemove <= len-1); // see valid range for initialCharToRemove above wxASSERT(nCharsToRemove >= 1 && nCharsToRemove <= len-initialCharToRemove); // see valid range for nCharsToRemove above // erase nCharsToRemove characters after initialCharToRemove (included); -- 2.45.2