Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Aug 13, 2014
1 parent 299cf52 commit 11720d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/CChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ class CChannel {
size_t iOutgoingBytes;
size_t iIncomingBytes;

void UpdateTransmitStatistics( int sentDataSize );
void UpdateReceiveStatistics( int receivedDataSize );
void UpdateTransmitStatistics( size_t sentDataSize );
void UpdateReceiveStatistics( size_t receivedDataSize );

public:

Expand Down
6 changes: 3 additions & 3 deletions src/common/CChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void CChannel::AddReliablePacketToSend(CBytestream& bs)
// The messages are joined in Transmit() in one bigger packet, until it will hit bandwidth limit
}

void CChannel::UpdateTransmitStatistics( int sentDataSize )
void CChannel::UpdateTransmitStatistics( size_t sentDataSize )
{
// Update statistics
iOutgoingBytes += sentDataSize;
Expand All @@ -95,7 +95,7 @@ void CChannel::UpdateTransmitStatistics( int sentDataSize )
cOutgoingRate.addData( sentDataSize );
}

void CChannel::UpdateReceiveStatistics( int receivedDataSize )
void CChannel::UpdateReceiveStatistics( size_t receivedDataSize )
{
// Got a packet (good or bad), update the received time
fLastPckRecvd = tLX->currentTime;
Expand Down Expand Up @@ -208,7 +208,7 @@ void CChannel_056b::Transmit( CBytestream *bs )
Socket->setRemoteAddress(RemoteAddr);
outpack.Send(Socket.get());

UpdateTransmitStatistics( (int)outpack.GetLength() );
UpdateTransmitStatistics( outpack.GetLength() );
}


Expand Down

0 comments on commit 11720d7

Please sign in to comment.