Fixed some implicit conversion to boolean spotted by Visual C.

git-svn-id: http://voip.null.ro/svn/yate@5013 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-04-19 13:46:42 +00:00
parent 8d200bdd92
commit 96e7e8cdff
3 changed files with 4 additions and 4 deletions

View File

@ -647,9 +647,9 @@ bool FSKModem::demodulate(const DataBlock& data)
if (bit >= 0) {
#ifdef YMODEM_BUFFER_BITS
if (m_bits)
m_bits->accumulate(bit);
m_bits->accumulate(bit != 0);
#endif
m_terminated = !m_uart->recvBit(bit);
m_terminated = !m_uart->recvBit(bit != 0);
}
}
break;

View File

@ -382,7 +382,7 @@ static bool decodeItuAddress(const SS7SCCP* sccp, NamedList& params,const SCCPPa
unsigned char nai = *buffer++;
length--;
getDictValue(params,gtName + ".nature", nai & 0x7f,s_nai);
odd = nai & 0x80;
odd = (nai & 0x80) != 0;
} else if (gti == 0x02) { // GT includes Translation Type
if (length < 1)
break;

View File

@ -493,7 +493,7 @@ void RegfilePlugin::populate(bool first)
if (!nl)
continue;
// Delete saved accounts logged in on reliable connections on first load
bool exist = s_cfg.getSection(*nl);
bool exist = s_cfg.getSection(*nl) != 0;
if (exist && !(first && nl->getBoolValue("connection_reliable"))) {
DDebug(this,DebugAll,"Loaded saved account '%s'",nl->c_str());
continue;