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() );