win32: some warning removed

This commit is contained in:
Matej Sekoranja
2013-12-03 12:08:45 +01:00
parent ebef394fe3
commit aa6bcecb1a
10 changed files with 22 additions and 22 deletions

View File

@@ -99,7 +99,7 @@ namespace pvAccess {
int BlockingServerTCPTransport::getChannelCount() {
Lock lock(_channelsMutex);
return _channels.size();
return static_cast<int>(_channels.size());
}
void BlockingServerTCPTransport::send(ByteBuffer* buffer,
@@ -123,10 +123,10 @@ namespace pvAccess {
control->startMessage(CMD_CONNECTION_VALIDATION, 2*sizeof(int32));
// receive buffer size
buffer->putInt(getReceiveBufferSize());
buffer->putInt(static_cast<int32>(getReceiveBufferSize()));
// socket receive buffer size
buffer->putInt(getSocketReceiveBufferSize());
buffer->putInt(static_cast<int32>(getSocketReceiveBufferSize()));
// send immediately
control->flush(true);