mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
Fixed small issue with newest gcc
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@700 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -540,7 +540,11 @@ unsigned int CTable::GetColumnWidth(unsigned int uIdx) {
|
||||
|
||||
for (unsigned int a = 0; a < size(); a++) {
|
||||
map<CString, CString>* 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;
|
||||
|
||||
+2
-1
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user