|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73647 - trunk/boost/math/bindings
From: john_at_[hidden]
Date: 2011-08-11 07:02:12
Author: johnmaddock
Date: 2011-08-11 07:02:12 EDT (Thu, 11 Aug 2011)
New Revision: 73647
URL: http://svn.boost.org/trac/boost/changeset/73647
Log:
Fix bug in e_float bindings - negative integers were incorrectly converted.
Text files modified:
trunk/boost/math/bindings/e_float.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/math/bindings/e_float.hpp
==============================================================================
--- trunk/boost/math/bindings/e_float.hpp (original)
+++ trunk/boost/math/bindings/e_float.hpp 2011-08-11 07:02:12 EDT (Thu, 11 Aug 2011)
@@ -185,7 +185,7 @@
term = floor(f);
e -= 30;
m_value *= shift;
- m_value += ::e_float(static_cast<UINT64>(term));
+ m_value += ::e_float(static_cast<INT64>(term));
f -= term;
}
m_value *= ::ef::pow2(e);
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