diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-05-15 13:12:09 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-05-15 13:12:09 +0200 |
commit | 49df2f416cd43e9e18f3dbd964271c5cca835729 (patch) | |
tree | 815d659e54170a47fd812bc55bbda6b9f0ec7581 /src/array.hpp | |
parent | 49387874efe790713f4a090e03a97212f4889163 (diff) |
Fixes warning when compiling with MSVC on Win64
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/array.hpp')
-rw-r--r-- | src/array.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/array.hpp b/src/array.hpp index b9f7f78..1d18e48 100644 --- a/src/array.hpp +++ b/src/array.hpp @@ -99,7 +99,7 @@ namespace zmq inline void push_back (T *item_) { if (item_) - item_->set_array_index (items.size ()); + item_->set_array_index ((int) items.size ()); items.push_back (item_); } @@ -109,7 +109,7 @@ namespace zmq inline void erase (size_type index_) { if (items.back ()) - items.back ()->set_array_index (index_); + items.back ()->set_array_index ((int) index_); items [index_] = items.back (); items.pop_back (); } @@ -117,9 +117,9 @@ namespace zmq inline void swap (size_type index1_, size_type index2_) { if (items [index1_]) - items [index1_]->set_array_index (index2_); + items [index1_]->set_array_index ((int) index2_); if (items [index2_]) - items [index2_]->set_array_index (index1_); + items [index2_]->set_array_index ((int) index1_); std::swap (items [index1_], items [index2_]); } |