X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f48a115976827701bb7b4bab7333f7512de08ab2..4fe83b93a517ca229ff6503eacf81c1177d088e0:/src/common/ctrlcmn.cpp 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);