|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-01-08 06:27:54
Author: danieljames
Date: 2008-01-08 06:27:53 EST (Tue, 08 Jan 2008)
New Revision: 42608
URL: http://svn.boost.org/trac/boost/changeset/42608
Log:
Fix the floating point to std::size_t conversion.
Text files modified:
branches/unordered/trunk/boost/unordered/detail/hash_table.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: branches/unordered/trunk/boost/unordered/detail/hash_table.hpp
==============================================================================
--- branches/unordered/trunk/boost/unordered/detail/hash_table.hpp (original)
+++ branches/unordered/trunk/boost/unordered/detail/hash_table.hpp 2008-01-08 06:27:53 EST (Tue, 08 Jan 2008)
@@ -65,7 +65,7 @@
inline std::size_t float_to_size_t(float f)
{
- return f > static_cast<float>((std::numeric_limits<std::size_t>::max)()) ?
+ return f >= static_cast<float>((std::numeric_limits<std::size_t>::max)()) ?
(std::numeric_limits<std::size_t>::max)() :
static_cast<std::size_t>(f);
}
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