summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/rep1
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-21 22:22:14 +0200
committerJose <jose@zeroc.com>2019-06-21 22:22:14 +0200
commitd1b7c66fab777fe72e5cf77fd284218e2080b017 (patch)
treeb48615b2d9d2f59195c8a560e07585b9cbb77cb5 /cpp/test/IceStorm/rep1
parentAdd ice_isFixed - Close #356 (diff)
downloadice-d1b7c66fab777fe72e5cf77fd284218e2080b017.tar.bz2
ice-d1b7c66fab777fe72e5cf77fd284218e2080b017.tar.xz
ice-d1b7c66fab777fe72e5cf77fd284218e2080b017.zip
Enable -Wconversion with clang - Close #363
Diffstat (limited to 'cpp/test/IceStorm/rep1')
-rw-r--r--cpp/test/IceStorm/rep1/Publisher.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/IceStorm/rep1/Publisher.cpp b/cpp/test/IceStorm/rep1/Publisher.cpp
index 67746af7429..479d0806f2c 100644
--- a/cpp/test/IceStorm/rep1/Publisher.cpp
+++ b/cpp/test/IceStorm/rep1/Publisher.cpp
@@ -104,11 +104,11 @@ Publisher::run(int argc, char** argv)
os << argv[0] << ": Not enough endpoints in publisher proxy";
throw invalid_argument(os.str());
}
- int which = 0;
- for(int i = 0; i < 1000; ++i)
+ size_t which = 0;
+ for(size_t i = 0; i < 1000; ++i)
{
- single[which]->event(i);
- which = (which + 1) % static_cast<int>(single.size());
+ single[which]->event(static_cast<Ice::Int>(i));
+ which = (which + 1) % single.size();
}
}
else