summaryrefslogtreecommitdiff
path: root/ida.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-03-20 20:39:59 +0000
committerweidai <weidai11@users.noreply.github.com>2003-03-20 20:39:59 +0000
commit6698a186066d6efb239fcfc13f296794b9d7dda2 (patch)
treec85dd5aa14780d400b30c133fa3704b044d1bbb2 /ida.cpp
parent067b425053134d8d5d44e1ecb8907ea28b985a68 (diff)
downloadcryptopp-git-6698a186066d6efb239fcfc13f296794b9d7dda2.tar.gz
fix warnings for VC7 and GCC
Diffstat (limited to 'ida.cpp')
-rw-r--r--ida.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ida.cpp b/ida.cpp
index d52e443b..3bec9f80 100644
--- a/ida.cpp
+++ b/ida.cpp
@@ -45,7 +45,7 @@ void RawIDA::ChannelInitialize(const string &channel, const NameValuePairs &para
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]]);