summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/FreezeScript/Data.cpp2
-rw-r--r--cpp/src/Ice/TcpTransceiver.cpp5
-rw-r--r--cpp/src/Ice/TcpTransceiver.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/FreezeScript/Data.cpp b/cpp/src/FreezeScript/Data.cpp
index ceb94cafd77..984b1d5d3e2 100644
--- a/cpp/src/FreezeScript/Data.cpp
+++ b/cpp/src/FreezeScript/Data.cpp
@@ -1600,7 +1600,7 @@ FreezeScript::SequenceData::getElement(const DataPtr& element) const
}
Ice::Long iv = i->integerValue();
- if(iv < 0 || iv >= _elements.size())
+ if(iv < 0 || iv >= static_cast<Ice::Long>(_elements.size()))
{
_errorReporter->error("sequence index " + i->toString() + " out of range");
}
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp
index b5d5d880bc4..43c76a93dde 100644
--- a/cpp/src/Ice/TcpTransceiver.cpp
+++ b/cpp/src/Ice/TcpTransceiver.cpp
@@ -321,14 +321,15 @@ IceInternal::TcpTransceiver::type() const
string
IceInternal::TcpTransceiver::toString() const
{
- return fdToString(_fd);
+ return _desc;
}
IceInternal::TcpTransceiver::TcpTransceiver(const InstancePtr& instance, SOCKET fd) :
_traceLevels(instance->traceLevels()),
_logger(instance->logger()),
_stats(instance->stats()),
- _fd(fd)
+ _fd(fd),
+ _desc(fdToString(fd))
{
FD_ZERO(&_rFdSet);
FD_ZERO(&_wFdSet);
diff --git a/cpp/src/Ice/TcpTransceiver.h b/cpp/src/Ice/TcpTransceiver.h
index 2a75c63cd47..cfefc3daf73 100644
--- a/cpp/src/Ice/TcpTransceiver.h
+++ b/cpp/src/Ice/TcpTransceiver.h
@@ -49,6 +49,8 @@ private:
SOCKET _fd;
fd_set _rFdSet;
fd_set _wFdSet;
+
+ const std::string _desc;
};
}