diff options
author | Jose <jose@zeroc.com> | 2019-06-21 22:22:14 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-06-21 22:22:14 +0200 |
commit | d1b7c66fab777fe72e5cf77fd284218e2080b017 (patch) | |
tree | b48615b2d9d2f59195c8a560e07585b9cbb77cb5 /cpp/test/IceStorm/rep1 | |
parent | Add ice_isFixed - Close #356 (diff) | |
download | ice-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.cpp | 8 |
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 |