Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82210 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2012-12-26 05:38:54


Author: timblechmann
Date: 2012-12-26 05:38:53 EST (Wed, 26 Dec 2012)
New Revision: 82210
URL: http://svn.boost.org/trac/boost/changeset/82210

Log:
lockfree: fix some warnings in testsuite
Text files modified:
   trunk/libs/lockfree/test/spsc_queue_test.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/lockfree/test/spsc_queue_test.cpp
==============================================================================
--- trunk/libs/lockfree/test/spsc_queue_test.cpp (original)
+++ trunk/libs/lockfree/test/spsc_queue_test.cpp 2012-12-26 05:38:53 EST (Wed, 26 Dec 2012)
@@ -93,7 +93,7 @@
 
     int data[xqueue_size];
     for (size_t i = 0; i != xqueue_size; ++i)
- data[i] = i*2;
+ data[i] = (int)i*2;
 
     switch (EnqueueMode) {
     case pointer_and_size:
@@ -149,7 +149,7 @@
 
     int data[xqueue_size];
     for (size_t i = 0; i != xqueue_size; ++i)
- data[i] = i*2;
+ data[i] = (int)i*2;
 
     std::vector<int> vdata(data, data + xqueue_size);
 
@@ -198,7 +198,7 @@
 
     int data[xqueue_size];
     for (size_t i = 0; i != xqueue_size; ++i)
- data[i] = i*2;
+ data[i] = (int)i*2;
 
     std::vector<int> vdata(data, data + xqueue_size);
 
@@ -340,7 +340,7 @@
     boost::lockfree::detail::atomic<long> spsc_queue_cnt;
 
     static_hashed_set<int, 1<<16 > working_set;
- boost::lockfree::detail::atomic<long> received_nodes;
+ boost::lockfree::detail::atomic<size_t> received_nodes;
 
     spsc_queue_tester_buffering(void):
         spsc_queue_cnt(0), received_nodes(0)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk