Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56871 - in sandbox/stm/branches/vbe/boost/stm: . detail
From: vicente.botet_at_[hidden]
Date: 2009-10-15 11:48:07


Author: viboes
Date: 2009-10-15 11:48:06 EDT (Thu, 15 Oct 2009)
New Revision: 56871
URL: http://svn.boost.org/trac/boost/changeset/56871

Log:
TBoost.STM vbe:
* Warning cleanup
Text files modified:
   sandbox/stm/branches/vbe/boost/stm/contention_manager.hpp | 2 +-
   sandbox/stm/branches/vbe/boost/stm/detail/deleters.hpp | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/stm/branches/vbe/boost/stm/contention_manager.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/stm/contention_manager.hpp (original)
+++ sandbox/stm/branches/vbe/boost/stm/contention_manager.hpp 2009-10-15 11:48:06 EDT (Thu, 15 Oct 2009)
@@ -193,7 +193,7 @@
       double abortPriority = 0;
       bool hasLargestReadSet = true;
 
- int mem = lhs.reads() + (lhs.writes() * 10);
+ unsigned int mem = lhs.reads() + (lhs.writes() * 10);
 
       double decrementing = 1.0;
       for (std::list<transaction*>::iterator iter = rhs.begin();

Modified: sandbox/stm/branches/vbe/boost/stm/detail/deleters.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/stm/detail/deleters.hpp (original)
+++ sandbox/stm/branches/vbe/boost/stm/detail/deleters.hpp 2009-10-15 11:48:06 EDT (Thu, 15 Oct 2009)
@@ -49,7 +49,7 @@
     std::size_t size_;
     base_transaction_object_array_deleter (T* ptr, std::size_t size) : ptr_(ptr), size_(size) {}
     virtual void reset() {
- for (int i =0; i< size_; ++i) {
+ for (int std::size_t =0; i< size_; ++i) {
             static_cast<base_transaction_object*>(ptr_+i)->transaction_thread(kInvalidThread);
             static_cast<base_transaction_object*>(ptr_+i)->new_memory(0);
         }
@@ -89,7 +89,7 @@
 
     non_transaction_object_array_deleter(T* ptr, std::size_t size) : ptr_(ptr), size_(size) {}
     virtual void reset() {
- for (int i =0; i< size_; ++i) {
+ for (std::size_t i =0; i< size_; ++i) {
             binds_type& binds= (ptr_+i)->binds();
             for (binds_iterator it =binds.begin(); it!= binds.end(); ++it) {
                 static_cast<base_transaction_object*>(*it)->transaction_thread(kInvalidThread);


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