Fix bug in test; found by AddressSanitizer
authorMarshall Clow <mclow@qualcomm.com>
Wed, 20 Mar 2013 00:01:48 +0000 (00:01 +0000)
committerMarshall Clow <mclow@qualcomm.com>
Wed, 20 Mar 2013 00:01:48 +0000 (00:01 +0000)
llvm-svn: 177464

libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp

index 791d959..1be2791 100644 (file)
@@ -33,7 +33,7 @@ int main()
         double b[] = {10, 14, 16, 17};
         double p[] = {25, 62.5, 12.5, 25};
         const size_t Np = sizeof(p) / sizeof(p[0]);
-        D d1(b, b+Np+1, p);
+        D d1(b, b+Np, p);
         std::ostringstream os;
         os << d1;
         std::istringstream is(os.str());