summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/StringUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-03-22 15:19:54 +0000
committerMarc Laukien <marc@zeroc.com>2003-03-22 15:19:54 +0000
commit226cc499ba5d420e3f7ef1fcd33091b07190e4c0 (patch)
treee5bb425ea4031566ce77cb09fedbf5f0055297c8 /cpp/src/Ice/StringUtil.cpp
parentadded throughput demo (diff)
downloadice-226cc499ba5d420e3f7ef1fcd33091b07190e4c0.tar.bz2
ice-226cc499ba5d420e3f7ef1fcd33091b07190e4c0.tar.xz
ice-226cc499ba5d420e3f7ef1fcd33091b07190e4c0.zip
added throughput demo
Diffstat (limited to 'cpp/src/Ice/StringUtil.cpp')
-rw-r--r--cpp/src/Ice/StringUtil.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/Ice/StringUtil.cpp b/cpp/src/Ice/StringUtil.cpp
index 0f12ec742e8..08b55a223b5 100644
--- a/cpp/src/Ice/StringUtil.cpp
+++ b/cpp/src/Ice/StringUtil.cpp
@@ -140,9 +140,8 @@ IceInternal::encodeString(const string& s, const string& special)
bool
IceInternal::decodeString(const string& s, string::size_type start, string::size_type end, string& result)
{
- const string::size_type len = s.size();
assert(start >= 0);
- assert(end <= len);
+ assert(end <= s.size());
assert(start <= end);
while(start < end)