summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2013-03-18 23:39:36 +0000
committerMarshall Clow <mclow@qualcomm.com>2013-03-18 23:39:36 +0000
commit1c00ce5070fb85e7a5a62000b6decceee81d7e52 (patch)
treece673b431cbcd47c4d8076662521af7fd526281a /libcxx/test
parent9cf21ae068bd89f3473b811e4e5567aea6e26185 (diff)
downloadbcm5719-llvm-1c00ce5070fb85e7a5a62000b6decceee81d7e52.tar.gz
bcm5719-llvm-1c00ce5070fb85e7a5a62000b6decceee81d7e52.zip
Fix bug in test; found by AddressSanitizer
llvm-svn: 177355
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.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/get_param.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
index 4501666306e..57a8ca5589c 100644
--- a/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
+++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
@@ -25,7 +25,7 @@ int main()
double b[] = {10, 14, 16, 17};
double p[] = {25, 62.5, 12.5, 10};
const size_t Np = sizeof(p) / sizeof(p[0]);
- P pa(b, b+Np+1, p);
+ P pa(b, b+Np, p);
D d(pa);
assert(d.param() == pa);
}
OpenPOWER on IntegriCloud