Fix bug in test; found by AddressSanitizer

llvm-svn: 177355
This commit is contained in:
Marshall Clow 2013-03-18 23:39:36 +00:00
parent 9cf21ae068
commit 1c00ce5070
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}