Boost logo

Boost-Commit :

From: gennaro.prota_at_[hidden]
Date: 2008-08-20 07:06:23


Author: gennaro_prota
Date: 2008-08-20 07:06:23 EDT (Wed, 20 Aug 2008)
New Revision: 48251
URL: http://svn.boost.org/trac/boost/changeset/48251

Log:
integer_log2.hpp and lowest_bit.hpp, in boost/pending/: little comment cleanup (svn anchors, etc.); added a static_cast<> to silence (harmless) MSVC++ warnings
Text files modified:
   trunk/boost/pending/integer_log2.hpp | 12 ++++--------
   trunk/boost/pending/lowest_bit.hpp | 8 +++-----
   2 files changed, 7 insertions(+), 13 deletions(-)

Modified: trunk/boost/pending/integer_log2.hpp
==============================================================================
--- trunk/boost/pending/integer_log2.hpp (original)
+++ trunk/boost/pending/integer_log2.hpp 2008-08-20 07:06:23 EDT (Wed, 20 Aug 2008)
@@ -1,20 +1,16 @@
-// -------------------------------------
+// -----------------------------------------------------------
 // integer_log2.hpp
 //
 // Gives the integer part of the logarithm, in base 2, of a
 // given number. Behavior is undefined if the argument is <= 0.
 //
-//
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// Copyright (c) 2003-2004, 2008 Gennaro Prota
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 //
-// ------------------------------------------------------
-//
-// $Id$
-
+// -----------------------------------------------------------
 
 #ifndef BOOST_INTEGER_LOG2_HPP_GP_20030301
 #define BOOST_INTEGER_LOG2_HPP_GP_20030301
@@ -37,7 +33,7 @@
 
       while (x != 1) {
 
- const T t = x >> n;
+ const T t = static_cast<T>(x >> n);
           if (t) {
               result += n;
               x = t;

Modified: trunk/boost/pending/lowest_bit.hpp
==============================================================================
--- trunk/boost/pending/lowest_bit.hpp (original)
+++ trunk/boost/pending/lowest_bit.hpp 2008-08-20 07:06:23 EDT (Wed, 20 Aug 2008)
@@ -1,17 +1,15 @@
-// -------------------------------------
+// -----------------------------------------------------------
 // lowest_bit.hpp
 //
 // Position of the lowest bit 'on'
 //
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// Copyright (c) 2003-2004, 2008 Gennaro Prota
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 //
-// ------------------------------------------------------
-//
-// $Id$
+// -----------------------------------------------------------
 
 #ifndef BOOST_LOWEST_BIT_HPP_GP_20030301
 #define BOOST_LOWEST_BIT_HPP_GP_20030301


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