Don't test size_t for positive only values (warning fix).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -984,7 +984,7 @@ int wxPrintfConvSpec::Process(wxChar *buf, size_t lenMax, wxPrintfArg *p)
|
||||
case wxPAT_POINTER:
|
||||
#if wxUSE_STRUTILS
|
||||
{
|
||||
wxASSERT(lenScratch >= 0 && lenScratch < wxMAX_SVNPRINTF_SCRATCHBUFFER_LEN);
|
||||
wxASSERT( /* lenScratch >= 0 && */ lenScratch < wxMAX_SVNPRINTF_SCRATCHBUFFER_LEN);
|
||||
if (lenMax < lenScratch)
|
||||
{
|
||||
// fill output buffer and then return -1
|
||||
|
Reference in New Issue
Block a user