Subject: [Boost-bugs] [Boost C++ Libraries] #11453: problem in boost/math/special_functions/detail/bernoulli_details.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-07 13:18:10
#11453: problem in boost/math/special_functions/detail/bernoulli_details.hpp
---------------------------------------+-------------------------
Reporter: Ed Vogel <edward.vogel@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
---------------------------------------+-------------------------
There's an issue with
boost/math/special_functions/detail/bernouli_details.hpp
The 'for' statements at (about) lines 438 and 454 need static_cast
operators around the first operand to std::max to make sure the
operand is cast to a std::size_t. The 'for' statement around line
482 has such a static_cast, and I expect most platforms will be
using that conditional.
However, the current code fails in cases where size_t is 64-bits and
unsigned is 32-bits on platforms where either BOOST_HAS_THREADS is
not defined or BOOST_MATH_NO_ATOMIC_INT is defined.
Thank you,
Ed Vogel
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11453> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC