[libcxx] r177355 - Fix bug in test; found by AddressSanitizer
Marshall Clow
mclow at qualcomm.com
Mon Mar 18 16:39:36 PDT 2013
Author: marshall
Date: Mon Mar 18 18:39:36 2013
New Revision: 177355
URL: http://llvm.org/viewvc/llvm-project?rev=177355&view=rev
Log:
Fix bug in test; found by AddressSanitizer
Modified:
libcxx/trunk/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
Modified: libcxx/trunk/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp?rev=177355&r1=177354&r2=177355&view=diff
==============================================================================
--- libcxx/trunk/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp (original)
+++ libcxx/trunk/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp Mon Mar 18 18:39:36 2013
@@ -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);
}
More information about the cfe-commits
mailing list