From 49df2f416cd43e9e18f3dbd964271c5cca835729 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 15 May 2011 13:12:09 +0200 Subject: Fixes warning when compiling with MSVC on Win64 Signed-off-by: Martin Sustrik --- src/array.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/array.hpp') 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_]); } -- cgit v1.2.3