summaryrefslogtreecommitdiffstats
path: root/libcxx/test/numerics/rand
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2013-03-20 00:01:48 +0000
committerMarshall Clow <mclow@qualcomm.com>2013-03-20 00:01:48 +0000
commit761b5cf0875ffb83b99be3c7c7d19e44732f6a34 (patch)
treed5ab554e264bf6027144e994f7c336f718dd9ba0 /libcxx/test/numerics/rand
parentb162a5ca4d706fd22951bc7d9bedb6911d519f05 (diff)
downloadbcm5719-llvm-761b5cf0875ffb83b99be3c7c7d19e44732f6a34.tar.gz
bcm5719-llvm-761b5cf0875ffb83b99be3c7c7d19e44732f6a34.zip
Fix bug in test; found by AddressSanitizer
llvm-svn: 177464
Diffstat (limited to 'libcxx/test/numerics/rand')
-rw-r--r--libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp
index 791d9595e32..1be2791fa47 100644
--- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp
+++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp
@@ -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());
OpenPOWER on IntegriCloud