From 810369db4bb6c03a7d84c0d73a14764c548f2022 Mon Sep 17 00:00:00 2001 From: prozacx Date: Fri, 17 Mar 2006 20:54:16 +0000 Subject: [PATCH] Fixed small issue with newest gcc git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@700 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 6 +++++- modules/modperl.cpp | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Utils.cpp b/Utils.cpp index 3f76d5b1..2faa7b4b 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -540,7 +540,11 @@ unsigned int CTable::GetColumnWidth(unsigned int uIdx) { for (unsigned int a = 0; a < size(); a++) { map* pRow = (*this)[a]; - uRet = uRet >? (*pRow)[m_vsHeaders[uIdx]].size(); + unsigned int uTmp = (*pRow)[m_vsHeaders[uIdx]].size(); + + if (uTmp > uRet) { + uRet = uTmp; + } } return uRet; diff --git a/modules/modperl.cpp b/modules/modperl.cpp index d04e9941..ff51844e 100644 --- a/modules/modperl.cpp +++ b/modules/modperl.cpp @@ -724,7 +724,8 @@ XS(XS_ZNC_WriteSock) if ( iLen > 0 ) { PString sData; - sData.append( SvPV( ST(1), iLen ), iLen ); + STRLEN iLen2 = iLen; + sData.append( SvPV( ST(1), iLen ), iLen2 ); CPerlSock *pSock = (CPerlSock *)MANAGER->FindSockByFD( iSockFD ); if ( ( pSock ) && ( pSock->GetSockName() == ZNCSOCK ) ) sReturn = pSock->Write( sData.data(), sData.length() );