[cfe-commits] [libcxx] r143104 - /libcxx/trunk/include/algorithm
Howard Hinnant
hhinnant at apple.com
Thu Oct 27 09:12:10 PDT 2011
Author: hhinnant
Date: Thu Oct 27 11:12:10 2011
New Revision: 143104
URL: http://llvm.org/viewvc/llvm-project?rev=143104&view=rev
Log:
Fixed bug in __independent_bits_engine found by Nick (from stackoverflow)
Modified:
libcxx/trunk/include/algorithm
Modified: libcxx/trunk/include/algorithm
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/algorithm?rev=143104&r1=143103&r2=143104&view=diff
==============================================================================
--- libcxx/trunk/include/algorithm (original)
+++ libcxx/trunk/include/algorithm Thu Oct 27 11:12:10 2011
@@ -2548,7 +2548,7 @@
{
__u = __e_() - _Engine::min();
} while (__u >= __y0_);
- if (__w0_ < _EDt)
+ if (__w0_ < _WDt)
_S <<= __w0_;
else
_S = 0;
@@ -2561,7 +2561,7 @@
{
__u = __e_() - _Engine::min();
} while (__u >= __y1_);
- if (__w0_ < _EDt - 1)
+ if (__w0_ < _WDt - 1)
_S <<= __w0_ + 1;
else
_S = 0;
More information about the cfe-commits
mailing list