[cfe-commits] [libcxx] r129520 - /libcxx/trunk/include/random

Howard Hinnant hhinnant at apple.com
Thu Apr 14 08:59:23 PDT 2011


Author: hhinnant
Date: Thu Apr 14 10:59:22 2011
New Revision: 129520

URL: http://llvm.org/viewvc/llvm-project?rev=129520&view=rev
Log:
Think-o in poisson_distribution at mean == 10

Modified:
    libcxx/trunk/include/random

Modified: libcxx/trunk/include/random
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/random?rev=129520&r1=129519&r2=129520&view=diff
==============================================================================
--- libcxx/trunk/include/random (original)
+++ libcxx/trunk/include/random Thu Apr 14 10:59:22 2011
@@ -4477,7 +4477,7 @@
 {
     result_type __x;
     uniform_real_distribution<double> __urd;
-    if (__pr.__mean_ <= 10)
+    if (__pr.__mean_ < 10)
     {
          __x = 0;
         for (double __p = __urd(__urng); __p > __pr.__l_; ++__x)





More information about the cfe-commits mailing list