Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77283 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2012-03-09 04:35:40


Author: johnmaddock
Date: 2012-03-09 04:35:36 EST (Fri, 09 Mar 2012)
New Revision: 77283
URL: http://svn.boost.org/trac/boost/changeset/77283

Log:
Fix warning with a cast rather than a blanket disable.
Text files modified:
   trunk/boost/math/special_functions/nonfinite_num_facets.hpp | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/nonfinite_num_facets.hpp
==============================================================================
--- trunk/boost/math/special_functions/nonfinite_num_facets.hpp (original)
+++ trunk/boost/math/special_functions/nonfinite_num_facets.hpp 2012-03-09 04:35:36 EST (Fri, 09 Mar 2012)
@@ -32,7 +32,6 @@
 # pragma warning(push)
 # pragma warning(disable : 4127) // conditional expression is constant.
 # pragma warning(disable : 4706) // assignment within conditional expression.
-# pragma warning(disable : 4244) // TODO? // Needs to be CharType version.
 #endif
 
 namespace boost {
@@ -150,7 +149,7 @@
             zeros.unsetf(std::ios::showpos); // Ignore showpos because must be negative.
             zeros.precision(iosb.precision());
             //zeros.width is set by put_num_and_fill
- zeros.fill(fill);
+ zeros.fill(static_cast<char>(fill));
             zeros << ValType(0);
             // std::cout << "zeros.str() = "<< zeros.str() << std::endl;
             // put_num_and_fill(it, iosb, "-", zeros.str().c_str(), fill, val);


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