$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r73272 - trunk/libs/pool/test
From: john_at_[hidden]
Date: 2011-07-21 06:02:15
Author: johnmaddock
Date: 2011-07-21 06:02:15 EDT (Thu, 21 Jul 2011)
New Revision: 73272
URL: http://svn.boost.org/trac/boost/changeset/73272
Log:
Correct test case to take account of sizeof(void*).
Text files modified:
trunk/libs/pool/test/test_bug_2696.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/pool/test/test_bug_2696.cpp
==============================================================================
--- trunk/libs/pool/test/test_bug_2696.cpp (original)
+++ trunk/libs/pool/test/test_bug_2696.cpp 2011-07-21 06:02:15 EDT (Thu, 21 Jul 2011)
@@ -18,9 +18,9 @@
static char * malloc BOOST_PREVENT_MACRO_SUBSTITUTION(const size_type bytes)
{
#ifndef BOOST_POOL_VALGRIND
- static const unsigned max_size = 4 * 40 + boost::math::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
+ static const unsigned max_size = sizeof(void*) * 40 + boost::math::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
#else
- static const unsigned max_size = 4 * 40;
+ static const unsigned max_size = sizeof(void*) * 40;
#endif
if(bytes > max_size)
return 0;