diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
commit | ec56662ba7b4cfaf1335a88854127fac06f376aa (patch) | |
tree | c85dd5aa14780d400b30c133fa3704b044d1bbb2 /ida.cpp | |
parent | 4feec7c333fd1ec92d1dd8c7f741249e3919ec5e (diff) | |
download | cryptopp-ec56662ba7b4cfaf1335a88854127fac06f376aa.tar.gz |
fix warnings for VC7 and GCC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@43 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'ida.cpp')
-rw-r--r-- | ida.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -45,7 +45,7 @@ void RawIDA::ChannelInitialize(const string &channel, const NameValuePairs ¶ else { int nShares = parameters.GetIntValueWithDefault("NumberOfShares", m_threshold); - for (unsigned int i=0; i<nShares; i++) + for (int i=0; i<nShares; i++) AddOutputChannel(i); } @@ -93,7 +93,7 @@ unsigned int RawIDA::LookupInputChannel(word32 channelId) const void RawIDA::ChannelData(word32 channelId, const byte *inString, unsigned int length, bool messageEnd) { - unsigned int i = InsertInputChannel(channelId); + int i = InsertInputChannel(channelId); if (i < m_threshold) { unsigned long size = m_inputQueues[i].MaxRetrievable(); @@ -125,7 +125,7 @@ void RawIDA::ChannelData(word32 channelId, const byte *inString, unsigned int le unsigned int RawIDA::InputBuffered(word32 channelId) const { - unsigned int i = LookupInputChannel(channelId); + int i = LookupInputChannel(channelId); return i < m_threshold ? m_inputQueues[i].MaxRetrievable() : 0; } @@ -165,7 +165,7 @@ void RawIDA::PrepareInterpolation() void RawIDA::ProcessInputQueues() { bool finished = (m_channelsFinished == m_threshold); - unsigned int i; + int i; while (finished ? m_channelsReady > 0 : m_channelsReady == m_threshold) { @@ -181,7 +181,7 @@ void RawIDA::ProcessInputQueues() m_channelsReady += queue.NumberOfMessages() > 0 || queue.MaxRetrievable() >= 4; } - for (i=0; i<m_outputChannelIds.size(); i++) + for (i=0; (unsigned int)i<m_outputChannelIds.size(); i++) { if (m_outputToInput[i] != m_threshold) m_outputQueues[i].PutWord32(m_y[m_outputToInput[i]]); |