Boost C++ Libraries: Ticket #11453: problem in boost/math/special_functions/detail/bernoulli_details.hpp https://svn.boost.org/trac10/ticket/11453 <p> There's an issue with boost/math/special_functions/detail/bernouli_details.hpp </p> <p> 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. </p> <p> 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. </p> <p> Thank you, </p> <p> Ed Vogel </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11453 Trac 1.4.3 John Maddock Thu, 03 Sep 2015 17:46:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11453#comment:1 https://svn.boost.org/trac10/ticket/11453#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/math/commit/789131a224c9cfbdedb7206f7389b1428f38ef19"><span class="icon">​</span>https://github.com/boostorg/math/commit/789131a224c9cfbdedb7206f7389b1428f38ef19</a> </p> Ticket