remove always-true test of unsigned >= 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dc771347d0
commit
5eed855656
@ -372,15 +372,7 @@ wxString wxControlBase::DoEllipsizeSingleLine(const wxString& curLine, const wxD
|
|||||||
return curLine;
|
return curLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __VMS
|
wxASSERT(initialCharToRemove <= len-1); // see valid range for initialCharToRemove above
|
||||||
#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(nCharsToRemove >= 1 && nCharsToRemove <= len-initialCharToRemove); // see valid range for nCharsToRemove above
|
wxASSERT(nCharsToRemove >= 1 && nCharsToRemove <= len-initialCharToRemove); // see valid range for nCharsToRemove above
|
||||||
|
|
||||||
// erase nCharsToRemove characters after initialCharToRemove (included);
|
// erase nCharsToRemove characters after initialCharToRemove (included);
|
||||||
|
Loading…
Reference in New Issue
Block a user