|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61751 - sandbox/hash/boost/hash/detail
From: me22.ca+boost_at_[hidden]
Date: 2010-05-03 22:46:21
Author: smcmurray
Date: 2010-05-03 22:46:20 EDT (Mon, 03 May 2010)
New Revision: 61751
URL: http://svn.boost.org/trac/boost/changeset/61751
Log:
hash: fix an insidious pasto
Text files modified:
sandbox/hash/boost/hash/detail/imploder.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: sandbox/hash/boost/hash/detail/imploder.hpp
==============================================================================
--- sandbox/hash/boost/hash/detail/imploder.hpp (original)
+++ sandbox/hash/boost/hash/detail/imploder.hpp 2010-05-03 22:46:20 EDT (Mon, 03 May 2010)
@@ -38,7 +38,7 @@
!(OutputBits % UnitBits && UnitBits % OutputBits));
template <typename InputValue, typename OutputValue>
static void step(InputValue z, OutputValue &x) {
- OutputValue y = low_bits<OutputBits>(OutputValue(z));
+ OutputValue y = low_bits<InputBits>(OutputValue(z));
x |= unbounded_shl<OutputBits - (InputBits+k)>(y);
}
template <typename InputType, typename OutputValue>
@@ -64,7 +64,7 @@
!((OutputBits % UnitBits) && (UnitBits % OutputBits)));
template <typename InputValue, typename OutputValue>
static void step(InputValue z, OutputValue &x) {
- OutputValue y = low_bits<OutputBits>(OutputValue(z));
+ OutputValue y = low_bits<InputBits>(OutputValue(z));
int const kb = (k % UnitBits);
int const ku = k - kb;
int const shift =
@@ -96,7 +96,7 @@
!((OutputBits % UnitBits) && (UnitBits % OutputBits)));
template <typename InputValue, typename OutputValue>
static void step(InputValue z, OutputValue &x) {
- OutputValue y = low_bits<OutputBits>(OutputValue(z));
+ OutputValue y = low_bits<InputBits>(OutputValue(z));
int const kb = (k % UnitBits);
int const ku = k - kb;
int const shift =
@@ -130,7 +130,7 @@
!((OutputBits % UnitBits) && (UnitBits % OutputBits)));
template <typename InputValue, typename OutputValue>
static void step(InputValue z, OutputValue &x) {
- OutputValue y = low_bits<OutputBits>(OutputValue(z));
+ OutputValue y = low_bits<InputBits>(OutputValue(z));
x |= unbounded_shl<k>(y);
}
template <typename InputType, typename OutputValue>
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