Convert unsigned variable to int before applying unary minus operator.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3438 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-07-16 12:28:14 +00:00
parent c5fa85bfa5
commit 23ff04b723
1 changed files with 2 additions and 2 deletions

View File

@ -1608,7 +1608,7 @@ bool JBStream::sendPending(bool streamOnly)
m_outStreamXmlCompress.clear();
}
else
m_outStreamXmlCompress.cut(-len);
m_outStreamXmlCompress.cut(-(int)len);
}
// Start TLS now for incoming streams
if (m_incoming && m_state == Securing) {
@ -1666,7 +1666,7 @@ bool JBStream::sendPending(bool streamOnly)
rest = eout->dataCount();
}
else {
m_outXmlCompress.cut(-len);
m_outXmlCompress.cut(-(int)len);
rest = m_outXmlCompress.length();
}
if (!rest) {