summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/InputStream.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-22 00:29:53 +0200
committerJose <jose@zeroc.com>2019-06-22 00:29:53 +0200
commitc5959fd09de61604bedd75354401df6a57395d65 (patch)
tree3b0227f631c8b20fb1a1a274b92f63f52f34af2c /cpp/include/Ice/InputStream.h
parentSmall fix (diff)
parentEnable -Wconversion with clang - Close #363 (diff)
downloadice-c5959fd09de61604bedd75354401df6a57395d65.tar.bz2
ice-c5959fd09de61604bedd75354401df6a57395d65.tar.xz
ice-c5959fd09de61604bedd75354401df6a57395d65.zip
Merge remote-tracking branch 'origin/3.7' into swift
Diffstat (limited to 'cpp/include/Ice/InputStream.h')
-rw-r--r--cpp/include/Ice/InputStream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/include/Ice/InputStream.h b/cpp/include/Ice/InputStream.h
index c9ffe9c20b0..4c00ef0fa8c 100644
--- a/cpp/include/Ice/InputStream.h
+++ b/cpp/include/Ice/InputStream.h
@@ -382,7 +382,7 @@ public:
_currentEncaps = new Encaps();
_currentEncaps->previous = oldEncaps;
}
- _currentEncaps->start = i - b.begin();
+ _currentEncaps->start = static_cast<size_t>(i - b.begin());
//
// I don't use readSize() and writeSize() for encapsulations,
@@ -484,7 +484,7 @@ public:
{
// Skip the optional content of the encapsulation if we are expecting an
// empty encapsulation.
- i += sz - sizeof(Ice::Int) - 2;
+ i += static_cast<size_t>(sz) - sizeof(Ice::Int) - 2;
}
return encoding;
}
@@ -511,7 +511,7 @@ public:
}
read(encoding);
- i += sz - sizeof(Int) - 2;
+ i += static_cast<size_t>(sz) - sizeof(Int) - 2;
return encoding;
}
@@ -1174,7 +1174,7 @@ public:
*/
size_type pos()
{
- return i - b.begin();
+ return static_cast<size_t>(i - b.begin());
}
/**