summaryrefslogtreecommitdiffstats
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-10-27 16:12:10 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-10-27 16:12:10 +0000
commit0176bc6cf5122f2196c9b39176d39ce39a5f0661 (patch)
treeeed4aced7c089ac2a7ebdbe0b09bf666a87cc432 /libcxx/include/algorithm
parent1455ce27e48db113215bf11ed19c30e7e5b19f95 (diff)
downloadbcm5719-llvm-0176bc6cf5122f2196c9b39176d39ce39a5f0661.tar.gz
bcm5719-llvm-0176bc6cf5122f2196c9b39176d39ce39a5f0661.zip
Fixed bug in __independent_bits_engine found by Nick (from stackoverflow)
llvm-svn: 143104
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index e662632b043..a89b9dd65ea 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -2548,7 +2548,7 @@ __independent_bits_engine<_Engine, _UIntType>::__eval(true_type)
{
__u = __e_() - _Engine::min();
} while (__u >= __y0_);
- if (__w0_ < _EDt)
+ if (__w0_ < _WDt)
_S <<= __w0_;
else
_S = 0;
@@ -2561,7 +2561,7 @@ __independent_bits_engine<_Engine, _UIntType>::__eval(true_type)
{
__u = __e_() - _Engine::min();
} while (__u >= __y1_);
- if (__w0_ < _EDt - 1)
+ if (__w0_ < _WDt - 1)
_S <<= __w0_ + 1;
else
_S = 0;
OpenPOWER on IntegriCloud