summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/InputStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/InputStream.cpp')
-rw-r--r--cpp/src/Ice/InputStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/InputStream.cpp b/cpp/src/Ice/InputStream.cpp
index 9f85122928d..d0c4c91d9fc 100644
--- a/cpp/src/Ice/InputStream.cpp
+++ b/cpp/src/Ice/InputStream.cpp
@@ -481,7 +481,7 @@ struct ReadBoolHelper
{
static bool* read(pair<const bool*, const bool*>& v, Int sz, InputStream::Container::iterator& i)
{
- bool* array = new bool[sz];
+ bool* array = new bool[static_cast<size_t>(sz)];
for(int idx = 0; idx < sz; ++idx)
{
array[idx] = static_cast<bool>(*(i + idx));