diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-07-21 09:42:01 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-07-21 09:42:01 -0230 |
commit | b30759dfccb7f844d3957bc09d68d0077a334e6a (patch) | |
tree | 7c3f9f8bccc3f674aedd70014a1925755937d5d9 /cpp/include/Ice/BasicStream.h | |
parent | Fixed build failure on Windows 64bits (diff) | |
download | ice-b30759dfccb7f844d3957bc09d68d0077a334e6a.tar.bz2 ice-b30759dfccb7f844d3957bc09d68d0077a334e6a.tar.xz ice-b30759dfccb7f844d3957bc09d68d0077a334e6a.zip |
ICE-5481 use size_type for Stream startSize() return type
Diffstat (limited to 'cpp/include/Ice/BasicStream.h')
-rw-r--r-- | cpp/include/Ice/BasicStream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/include/Ice/BasicStream.h b/cpp/include/Ice/BasicStream.h index a6e75c7fbd5..75e43ad8026 100644 --- a/cpp/include/Ice/BasicStream.h +++ b/cpp/include/Ice/BasicStream.h @@ -400,14 +400,14 @@ public: Ice::Int readAndCheckSeqSize(int); - int startSize() + size_type startSize() { - int pos = static_cast<Ice::Int>(b.size()); + size_type pos = b.size(); write(Ice::Int(0)); return pos; } - void endSize(int pos) + void endSize(size_type pos) { assert(pos >= 0); rewrite(static_cast<Ice::Int>(b.size()) - pos - 4, pos); |