Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53201 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-05-23 04:27:23


Author: xushiwei
Date: 2009-05-23 04:27:22 EDT (Sat, 23 May 2009)
New Revision: 53201
URL: http://svn.boost.org/trac/boost/changeset/53201

Log:
t
Text files modified:
   sandbox/memory/boost/memory/pools_alloc.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/memory/boost/memory/pools_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/pools_alloc.hpp (original)
+++ sandbox/memory/boost/memory/pools_alloc.hpp 2009-05-23 04:27:22 EDT (Sat, 23 May 2009)
@@ -176,7 +176,7 @@
         void* BOOST_MEMORY_CALL allocate(size_type cb)
         {
                 const size_type index = (cb - 1) >> ALIGN_BITS;
- if (index < NPOOL)
+ if (index < (size_type)NPOOL)
                         return ((FixedAllocT*)m_pools + index)->allocate(m_alloc);
                 else if (cb != 0)
                         return m_large_alloc.allocate(cb);
@@ -188,7 +188,7 @@
         void BOOST_MEMORY_CALL deallocate(void* p, size_t cb)
         {
                 const size_type index = (cb - 1) >> ALIGN_BITS;
- if (index < NPOOL)
+ if (index < (size_type)NPOOL)
                         ((FixedAllocT*)m_pools + index)->deallocate(m_alloc, p);
                 else if (cb != 0)
                         m_large_alloc.deallocate(p);
@@ -200,7 +200,7 @@
                 const size_type oldIndex = (oldSize - 1) >> ALIGN_BITS;
                 const size_type newIndex = (newSize - 1) >> ALIGN_BITS;
                 
- if (oldIndex == newIndex && oldIndex < NPOOL)
+ if (oldIndex == newIndex && oldIndex < (size_type)NPOOL)
                         return p;
                 void* p2 = allocate(newSize);
                 memcpy(p2, p, MIN(oldSize, newSize));


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